From 64ddf4b17c06703cf04d8f20da12abd8922ed679 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Mon, 27 Feb 2017 00:26:40 -0400 Subject: - Fixed some bugs when compiling common procedures in JS. --- luxc/src/lux/compiler/js/proc/common.clj | 4 ++-- 1 file 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 [ ] (defn [compile ?values special-args] -- cgit v1.2.3