aboutsummaryrefslogtreecommitdiff
path: root/luxc
diff options
context:
space:
mode:
authorEduardo Julian2017-02-27 00:26:40 -0400
committerEduardo Julian2017-02-27 00:26:40 -0400
commit64ddf4b17c06703cf04d8f20da12abd8922ed679 (patch)
tree940c9685c5aedeccc72e4dc90e5f6d19bc83943b /luxc
parent9dc39d70349707d6fb4db444db3795e5c9ed86dd (diff)
- Fixed some bugs when compiling common procedures in JS.
Diffstat (limited to 'luxc')
-rw-r--r--luxc/src/lux/compiler/js/proc/common.clj4
1 files changed, 2 insertions, 2 deletions
diff --git a/luxc/src/lux/compiler/js/proc/common.clj b/luxc/src/lux/compiler/js/proc/common.clj
index 08bf94b04..c7e741e01 100644
--- a/luxc/src/lux/compiler/js/proc/common.clj
+++ b/luxc/src/lux/compiler/js/proc/common.clj
@@ -35,7 +35,7 @@
^:private compile-bit-shift-left "shlI64"
^:private compile-bit-shift-right "shrI64"
- ^:private compile-bit-unsigned-shift-right "ushlI64"
+ ^:private compile-bit-unsigned-shift-right "ushrI64"
)
(defn ^:private compile-bit-count [compile ?values special-args]
@@ -89,7 +89,7 @@
;; (&/$Nil) special-args
]
=array (compile ?array)]
- (return (str =array ".length"))))
+ (return (str "LuxRT.fromNumberI64(" =array ".length" ")"))))
(do-template [<name> <method>]
(defn <name> [compile ?values special-args]