summaryrefslogtreecommitdiff
path: root/erts/emulator/beam/bif.h
diff options
context:
space:
mode:
authorBjörn Gustavsson <bjorn@erlang.org>2010-09-29 16:22:14 +0200
committerBjörn Gustavsson <bjorn@erlang.org>2010-09-30 15:36:15 +0200
commit105cc37ee041873c201bf1d0673b0ee071842758 (patch)
tree26f7a4eb163e03aa1e6817c7ac8572c919646c81 /erts/emulator/beam/bif.h
parent80d13dd3c0bea0f40811fa8d0c3690818c0414c1 (diff)
downloaderlang-105cc37ee041873c201bf1d0673b0ee071842758.tar.gz
Fix a bug in the ERTS_BIF_PREP_TRAPx() macros
It seems to work (at least on a little-endian architecture) by sheer luck.
Diffstat (limited to 'erts/emulator/beam/bif.h')
-rw-r--r--erts/emulator/beam/bif.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/erts/emulator/beam/bif.h b/erts/emulator/beam/bif.h
index 50f5f4fbd6..a84ee7bb23 100644
--- a/erts/emulator/beam/bif.h
+++ b/erts/emulator/beam/bif.h
@@ -135,7 +135,6 @@ do { \
(Proc)->arity = 1; \
(Proc)->def_arg_reg[0] = (Eterm) (A0); \
*((UWord *) (UWord) ((Proc)->def_arg_reg + 3)) = (UWord) ((Trap)->address); \
- (Proc)->def_arg_reg[3] = (UWord) ((Trap)->address); \
(Proc)->freason = TRAP; \
(Ret) = THE_NON_VALUE; \
} while (0)
@@ -146,7 +145,6 @@ do { \
(Proc)->def_arg_reg[0] = (Eterm) (A0); \
(Proc)->def_arg_reg[1] = (Eterm) (A1); \
*((UWord *) (UWord) ((Proc)->def_arg_reg + 3)) = (UWord) ((Trap)->address); \
- (Proc)->def_arg_reg[3] = (UWord) ((Trap)->address); \
(Proc)->freason = TRAP; \
(Ret) = THE_NON_VALUE; \
} while (0)
@@ -158,7 +156,6 @@ do { \
(Proc)->def_arg_reg[1] = (Eterm) (A1); \
(Proc)->def_arg_reg[2] = (Eterm) (A2); \
*((UWord *) (UWord) ((Proc)->def_arg_reg + 3)) = (UWord) ((Trap)->address); \
- (Proc)->def_arg_reg[3] = (UWord) ((Trap)->address); \
(Proc)->freason = TRAP; \
(Ret) = THE_NON_VALUE; \
} while (0)