diff options
author | Eduardo Julian | 2015-08-03 19:54:53 -0400 |
---|---|---|
committer | Eduardo Julian | 2015-08-03 19:54:53 -0400 |
commit | ddc471806fba8fe179d52b4781f0a66d871b5e99 (patch) | |
tree | 4f749d0135a22a69ea742eb7b03ac740a993ee69 /src/lux/compiler/case.clj | |
parent | 90399879ee7cc61e6333f7e81141441d32fcdb2e (diff) |
- Type definitions inside the compiler data now hold the type itself.
- Value definitions inside the compiler data now hold the value itself.
- Fixed a few bugs.
Diffstat (limited to '')
-rw-r--r-- | src/lux/compiler/case.clj | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lux/compiler/case.clj b/src/lux/compiler/case.clj index fc0cce31f..906cc1ca8 100644 --- a/src/lux/compiler/case.clj +++ b/src/lux/compiler/case.clj @@ -47,7 +47,7 @@ (.visitTypeInsn Opcodes/CHECKCAST "java/lang/Long") (.visitInsn Opcodes/DUP) (.visitMethodInsn Opcodes/INVOKEVIRTUAL "java/lang/Long" "longValue" "()J") - (.visitLdcInsn ?value) + (.visitLdcInsn (long ?value)) (.visitInsn Opcodes/LCMP) (.visitJumpInsn Opcodes/IFNE $else) (.visitInsn Opcodes/POP) @@ -58,7 +58,7 @@ (.visitTypeInsn Opcodes/CHECKCAST "java/lang/Double") (.visitInsn Opcodes/DUP) (.visitMethodInsn Opcodes/INVOKEVIRTUAL "java/lang/Double" "doubleValue" "()D") - (.visitLdcInsn ?value) + (.visitLdcInsn (double ?value)) (.visitInsn Opcodes/DCMPL) (.visitJumpInsn Opcodes/IFNE $else) (.visitInsn Opcodes/POP) |