aboutsummaryrefslogtreecommitdiff
path: root/lux-js
diff options
context:
space:
mode:
authorEduardo Julian2021-01-28 20:14:11 -0400
committerEduardo Julian2021-01-28 20:14:11 -0400
commit1797521191746640e761cc1b4973d46b8c403dee (patch)
tree197b60bf206f75c32a930b85910101c6d4c0d0f9 /lux-js
parent43d28326ad59c74439b96343cc8f619ed7d90231 (diff)
Implemented arithmetic right-shift in terms of logic right-shift.
Diffstat (limited to 'lux-js')
-rw-r--r--lux-js/source/program.lux2
1 files changed, 1 insertions, 1 deletions
diff --git a/lux-js/source/program.lux b/lux-js/source/program.lux
index 48392d358..aacbcdb54 100644
--- a/lux-js/source/program.lux
+++ b/lux-js/source/program.lux
@@ -285,7 +285,7 @@
[high low]])
(#.Some (.int (n.+ (|> high .nat (i64.left_shift 32))
(if (i.< +0 (.int low))
- (|> low .nat (i64.left_shift 32) (i64.logic_right_shift 32))
+ (|> low .nat (i64.left_shift 32) (i64.right_shift 32))
(.nat low)))))
_