aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/translation/jvm/reference.jvm.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--new-luxc/source/luxc/lang/translation/jvm/reference.jvm.lux6
1 files changed, 3 insertions, 3 deletions
diff --git a/new-luxc/source/luxc/lang/translation/jvm/reference.jvm.lux b/new-luxc/source/luxc/lang/translation/jvm/reference.jvm.lux
index 6776092c9..9271efe8f 100644
--- a/new-luxc/source/luxc/lang/translation/jvm/reference.jvm.lux
+++ b/new-luxc/source/luxc/lang/translation/jvm/reference.jvm.lux
@@ -16,7 +16,7 @@
(do-template [<name> <prefix>]
[(def: #export (<name> idx)
(-> Nat Text)
- (|> idx nat-to-int %i (format <prefix>)))]
+ (|> idx .int %i (format <prefix>)))]
[captured "c"]
[partial "p"]
@@ -30,12 +30,12 @@
#let [function-class (format (text.replace-all "/" "." this-module) "." function-class)]]
(wrap (|>> ($i.ALOAD +0)
($i.GETFIELD function-class
- (|> variable i/inc (i/* -1) int-to-nat captured)
+ (|> variable inc (i/* -1) .nat captured)
commonT.$Object)))))
(def: #export (translate-local variable)
(-> Variable (Meta $.Inst))
- (macro/wrap ($i.ALOAD (int-to-nat variable))))
+ (macro/wrap ($i.ALOAD (.nat variable))))
(def: #export (translate-variable variable)
(-> Variable (Meta $.Inst))