[VM/values/operators] [`>>`] Verify for Web builds
Opened this issue · 1 comments
github-actions commented
[VM/values/operators] [>>
] Verify for Web builds
we should also check whether big integers work too!
(the same applies to its in-place equivalent)
arturo/src/vm/values/operators.nim
Line 1391 in 04e57a1
case pair:
of Integer || Integer : normalIntegerShlI(x, y.i)
of BigInteger || Integer : (when defined(GMP): shlI(x.bi, culong(y.i)))
else:
discard invalidOperation("shl")
# TODO(VM/values/operators) [`>>`] Verify for Web builds
# we should also check whether big integers work too!
# (the same applies to its in-place equivalent)
# labels: unit-test, web, :integer
proc `>>`*(x: Value, y: Value): Value =
## perform binary right-shift between given values and return the result
let pair = getValuePair()
case pair:
of Integer || Integer : return normalIntegerShr(x.i, y.i)
of BigInteger || Integer : (when defined(GMP): return newInteger(x.bi shr culong(y.i)))
else:
return invalidOperation("shr")
42ae89a1cfecb4e80a2b6dbf3c8fe1998103abdf
stale commented
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.