aboutsummaryrefslogtreecommitdiff
path: root/luxc
diff options
context:
space:
mode:
authorEduardo Julian2017-05-05 18:33:59 -0400
committerEduardo Julian2017-05-05 18:33:59 -0400
commitdda9e7b3f998e7649104d478469b8a27c3c981ba (patch)
tree80f68579d355f659a3eff17a88b6d3a214831ba2 /luxc
parentc8dcafe3d40a366857dde291c8706d356186b1e0 (diff)
- Fixed a bug when compiling array-get, by just having it assume Object[] for all arrays.
Diffstat (limited to 'luxc')
-rw-r--r--luxc/src/lux/compiler/jvm/proc/common.clj3
1 files changed, 1 insertions, 2 deletions
diff --git a/luxc/src/lux/compiler/jvm/proc/common.clj b/luxc/src/lux/compiler/jvm/proc/common.clj
index efb7364a3..b616f4bdf 100644
--- a/luxc/src/lux/compiler/jvm/proc/common.clj
+++ b/luxc/src/lux/compiler/jvm/proc/common.clj
@@ -37,9 +37,8 @@
;; (&/$Nil) special-args
]
^MethodVisitor *writer* &/get-writer
- array-type (&host/->java-sig (&a/expr-type* ?array))
_ (compile ?array)
- :let [_ (.visitTypeInsn *writer* Opcodes/CHECKCAST array-type)]
+ :let [_ (.visitTypeInsn *writer* Opcodes/CHECKCAST "[Ljava/lang/Object;")]
_ (compile ?idx)
:let [_ (doto *writer*
&&/unwrap-long