You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jerryscript/jerry-core/vm/opcodes-ecma-bitwise.c:96:70: runtime error: left shift of negative value -1
Expected behavior
According to C99 standard (6.5.7/4):
The result of E1 << E2 is E1 left-shifted E2 bit positions; vacated bits are filled with
zeros. If E1 has an unsigned type, the value of the result is E1 × 2 E2 , reduced modulo
one more than the maximum value representable in the result type. If E1 has a signed
type and nonnegative value, and E1 × 2 E2 is representable in the result type, then that is
the resulting value; otherwise, the behavior is undefined.
The text was updated successfully, but these errors were encountered:
batizdaniel
added a commit
to batizdaniel/jerryscript
that referenced
this issue
Jan 6, 2022
JerryScript revision
ccc1525
Build platform
Ubuntu 20.04.1 LTS (Linux 5.4.0-74-generic x86_64)
Build steps
Test case
Output
Expected behavior
According to C99 standard (6.5.7/4):
The text was updated successfully, but these errors were encountered: