aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_vm.h
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2011-07-26 17:11:41 +0200
committerLukas Larsson <[email protected]>2011-10-11 17:10:19 +0200
commite04883d448df6e622535020449903e2f2a0f32c9 (patch)
treec7db6e79663481ff9e9f1cb2b79b86cfe61cfec9 /erts/emulator/beam/erl_vm.h
parent622daf3b96666f8bbabec44a15b26a188a83b95e (diff)
downloadotp-e04883d448df6e622535020449903e2f2a0f32c9.tar.gz
otp-e04883d448df6e622535020449903e2f2a0f32c9.tar.bz2
otp-e04883d448df6e622535020449903e2f2a0f32c9.zip
Update integer and floating point number comparisons
For floating point values which are greater than 9007199254740990.0 or smaller than -9007199254740990.0, the floating point numbers are now converted to integers during comparison with an integer. This makes number comparisons transitive for large floating point numbers.
Diffstat (limited to 'erts/emulator/beam/erl_vm.h')
-rw-r--r--erts/emulator/beam/erl_vm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_vm.h b/erts/emulator/beam/erl_vm.h
index e7fd144ec3..ed9139518c 100644
--- a/erts/emulator/beam/erl_vm.h
+++ b/erts/emulator/beam/erl_vm.h
@@ -55,7 +55,7 @@
heap data on the C stack or if we use the buffers in the scheduler data. */
#define TMP_HEAP_SIZE 128 /* Number of Eterm in the schedulers
small heap for transient heap data */
-#define CMP_TMP_HEAP_SIZE 2 /* cmp wants its own tmp-heap... */
+#define CMP_TMP_HEAP_SIZE 16 /* cmp wants its own tmp-heap... */
#define ERL_ARITH_TMP_HEAP_SIZE 4 /* as does erl_arith... */
#define BEAM_EMU_TMP_HEAP_SIZE 2 /* and beam_emu... */