aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/translation/jvm/primitive.jvm.lux
diff options
context:
space:
mode:
authorEduardo Julian2018-07-30 21:27:26 -0400
committerEduardo Julian2018-07-30 21:27:26 -0400
commitc3cdaad1d13f38ec926e7113ae95a25611a04053 (patch)
treeb47b29ff114526320ace9875a5166cb8bd5cdf9d /new-luxc/source/luxc/lang/translation/jvm/primitive.jvm.lux
parent4edf1f78132715124910ac8b8fc20e4da7072f15 (diff)
Updating new-luxc to latest Lux changes [Part 1].
Diffstat (limited to '')
-rw-r--r--new-luxc/source/luxc/lang/translation/jvm/primitive.jvm.lux9
1 files changed, 5 insertions, 4 deletions
diff --git a/new-luxc/source/luxc/lang/translation/jvm/primitive.jvm.lux b/new-luxc/source/luxc/lang/translation/jvm/primitive.jvm.lux
index c32e80d56..c46d4d495 100644
--- a/new-luxc/source/luxc/lang/translation/jvm/primitive.jvm.lux
+++ b/new-luxc/source/luxc/lang/translation/jvm/primitive.jvm.lux
@@ -24,9 +24,10 @@
(do-template [<name> <type> <load> <wrap>]
[(def: #export (<name> value)
(-> <type> (Operation Inst))
- (operation/wrap (|>> (<load> value) <wrap>)))]
+ (let [loadI (|> value <load>)]
+ (operation/wrap (|>> loadI <wrap>))))]
- [i64 Int _.long (_.wrap #jvm.Long)]
- [f64 Frac _.double (_.wrap #jvm.Double)]
- [text Text _.string (<|)]
+ [i64 (I64 Any) (<| _.long .int) (_.wrap #jvm.Long)]
+ [f64 Frac _.double (_.wrap #jvm.Double)]
+ [text Text _.string (<|)]
)