diff options
Diffstat (limited to 'erts/emulator/beam/emu/bs_instrs.tab')
-rw-r--r-- | erts/emulator/beam/emu/bs_instrs.tab | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/erts/emulator/beam/emu/bs_instrs.tab b/erts/emulator/beam/emu/bs_instrs.tab index e143331e51..bcd46052af 100644 --- a/erts/emulator/beam/emu/bs_instrs.tab +++ b/erts/emulator/beam/emu/bs_instrs.tab @@ -968,9 +968,9 @@ i_bs_create_bin(Fail, Alloc, Live, Dst, N) { $BS_FAIL_INFO($Fail, BADARG, am_size); } #else - Uint size; + Uint size; - if (!term_to_Uint(Size, &size)) { + if (!term_to_Uint(Size, &size)) { if (size == BADARG) { /* Not an integer or a negative integer. Determine which. */ if (is_big(Size)) { @@ -982,13 +982,13 @@ i_bs_create_bin(Fail, Alloc, Live, Dst, N) { } /* Huge positive integer. */ $BS_FAIL_INFO_SYSTEM_LIMIT($Fail); - } - $BS_SAFE_MUL(size, unit, $BS_FAIL_INFO_SYSTEM_LIMIT($Fail), size); - if ((size >> 31) != 0) { + } + $BS_SAFE_MUL(size, unit, $BS_FAIL_INFO_SYSTEM_LIMIT($Fail), size); + if ((size >> 31) != 0) { $BS_FAIL_INFO_SYSTEM_LIMIT($Fail); - } else { + } else { num_bits += size; - } + } #endif } break; |