Skip to content

Commit d4410b0

Browse files
committed
Merge pull request #1851 from pguyot/w39/jit-fix-decode_compact_term_integer-32bits
JIT: Fix decode_compact_term_integer on 32 bits platforms These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents dbadd42 + 2926608 commit d4410b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/jit/src/jit.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3407,7 +3407,7 @@ decode_compact_term_module_literal(LiteralIndex, MMod, MSt0, Rest) ->
34073407
{MSt1, Reg, Rest}.
34083408

34093409
decode_compact_term_integer(Value, _MMod, MSt, Rest) when
3410-
Value >= ?INT32_MIN andalso Value =< ?INT32_MAX
3410+
Value >= (?INT32_MIN bsr 4) andalso Value =< (?INT32_MAX bsr 4)
34113411
->
34123412
{MSt, term_from_int(Value), Rest};
34133413
decode_compact_term_integer(Value, MMod, MSt0, Rest) when

0 commit comments

Comments
 (0)