aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/beam_emu.c
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-07-02 14:50:47 +0200
committerBjörn Gustavsson <[email protected]>2015-07-06 13:38:18 +0200
commit7bfff20c48cdcabf1eae4b193a374a72977b9d3e (patch)
tree1cd5c49f6c480e354f914ff38ca2fef22cb7e71a /erts/emulator/beam/beam_emu.c
parent6d6fce257cf666113e982c0887121739dff5bf1d (diff)
downloadotp-7bfff20c48cdcabf1eae4b193a374a72977b9d3e.tar.gz
otp-7bfff20c48cdcabf1eae4b193a374a72977b9d3e.tar.bz2
otp-7bfff20c48cdcabf1eae4b193a374a72977b9d3e.zip
Eliminate the variable temp_bits at the top scope of process_main()
Diffstat (limited to 'erts/emulator/beam/beam_emu.c')
-rw-r--r--erts/emulator/beam/beam_emu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/beam_emu.c b/erts/emulator/beam/beam_emu.c
index a3b38adc4b..1ab8c71685 100644
--- a/erts/emulator/beam/beam_emu.c
+++ b/erts/emulator/beam/beam_emu.c
@@ -819,6 +819,7 @@ void** beam_ops;
#define BsGetFieldSize(Bits, Unit, Fail, Target) \
do { \
Sint _signed_size; Uint _uint_size; \
+ Uint temp_bits; \
if (is_small(Bits)) { \
_signed_size = signed_val(Bits); \
if (_signed_size < 0) { Fail; } \
@@ -833,6 +834,7 @@ void** beam_ops;
#define BsGetUncheckedFieldSize(Bits, Unit, Fail, Target) \
do { \
Sint _signed_size; Uint _uint_size; \
+ Uint temp_bits; \
if (is_small(Bits)) { \
_signed_size = signed_val(Bits); \
if (_signed_size < 0) { Fail; } \
@@ -1219,8 +1221,6 @@ void process_main(void)
#endif
#endif
- Uint temp_bits; /* Temporary used by BsSkipBits2 & BsGetInteger2 */
-
Eterm pt_arity; /* Used by do_put_tuple */
Uint64 start_time = 0; /* Monitor long schedule */