diff --git a/magic-compiler/dll-sources.edn b/magic-compiler/dll-sources.edn index 6bfd1d6d..0d0b83db 100644 --- a/magic-compiler/dll-sources.edn +++ b/magic-compiler/dll-sources.edn @@ -60,7 +60,7 @@ magic.analyzer.untyped_passes {:source "magic-compiler/src/magic/analyzer/untyped_passes.clj", :sha256 "19e7f4f2a357f2c265e373dcb1175f336baaf09b5d380744433a4d25f87c4a94"} magic.analyzer.util {:source "magic-compiler/src/magic/analyzer/util.clj", :sha256 "452824e951159fc291ab3d0055ca6a8c92a13afb626036041223f2cf0ce8759f"} magic.api {:source "magic-compiler/src/magic/api.clj", :sha256 "0ca4634ad93b01ff6cec5e8d04b022af1cd6b694d9a9529da46c704d89773df1"} - magic.core {:source "magic-compiler/src/magic/core.clj", :sha256 "586cce9ec3c0d5c5bccf153867db65a3b3f978ca234ff1615c063fd6a16ca6dd"} + magic.core {:source "magic-compiler/src/magic/core.clj", :sha256 "67dd98a3e6da08db737855da9786090331c2763a1a6a395857d6528b09169ba6"} magic.emission {:source "magic-compiler/src/magic/emission.clj", :sha256 "6ad018708a5ef365ced1f762ae1c18bc38ef909e73b24751d599e48a72418bfb"} magic.flags {:source "magic-compiler/src/magic/flags.clj", :sha256 "2557a7162fac069670e7084705608e56780da249be6d95ce80fff985b71c2263"} magic.interop {:source "magic-compiler/src/magic/interop.clj", :sha256 "17e4d2fbf1a915948b634d9252691c3183e17b25482fdedef1e039a6438cbc98"} diff --git a/magic-compiler/src/magic/core.clj b/magic-compiler/src/magic/core.clj index 54659ce3..1fa15f7b 100644 --- a/magic-compiler/src/magic/core.clj +++ b/magic-compiler/src/magic/core.clj @@ -357,7 +357,7 @@ (il/ldc-i8 k)) (defmethod load-constant UInt64 [k] - (il/ldc-i8 k)) + (il/ldc-i8 (unchecked-long k))) (defmethod load-constant UInt32 [k] (load-integer k)) diff --git a/magic-compiler/test/magic/test/literals.clj b/magic-compiler/test/magic/test/literals.clj index abc3fcc5..7257dbc4 100644 --- a/magic-compiler/test/magic/test/literals.clj +++ b/magic-compiler/test/magic/test/literals.clj @@ -17,7 +17,9 @@ (deftest unsigned-constants (cljclr=magic UInt32/MaxValue) - (clojure.test/is (= "4294967295" (str UInt32/MaxValue)))) + (clojure.test/is (= "4294967295" (str UInt32/MaxValue))) + (cljclr=magic UInt64/MaxValue) + (clojure.test/is (= "18446744073709551615" (str UInt64/MaxValue)))) (deftest sets (cljclr=magic #{})) diff --git a/nostrand/references/magic.core.clj.dll b/nostrand/references/magic.core.clj.dll index 84405089..30f393dc 100755 Binary files a/nostrand/references/magic.core.clj.dll and b/nostrand/references/magic.core.clj.dll differ