about summary refs log tree commit diff stats
path: root/src/bindings
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-09-16 03:46:13 +0200
committerbptato <nincsnevem662@gmail.com>2022-09-16 03:48:36 +0200
commit23caa878a3854dd0118792e1c051b5412ec345cc (patch)
tree0294ecb329765ed7f8960182224f397c46407580 /src/bindings
parent3f96681261692feedadfb8c488f3908dd80bb01c (diff)
downloadchawan-23caa878a3854dd0118792e1c051b5412ec345cc.tar.gz
Rename jsget/jsset to jsfget/jsfset for functions
The original idea was to use the same pragmas as object members, but
unfortunately this doesn't seem to work consistently after all.
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/quickjs.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bindings/quickjs.nim b/src/bindings/quickjs.nim
index 661b08b6..d216f6cf 100644
--- a/src/bindings/quickjs.nim
+++ b/src/bindings/quickjs.nim
@@ -56,7 +56,7 @@ when sizeof(int) < sizeof(int64):
     cast[pointer](v)
 
   template JS_MKVAL*(t, val: untyped): JSValue =
-    JSValue((uint64(t) shl 32) or uint32(val))
+    JSValue((cast[uint64](t) shl 32) or cast[uint32](val))
 
   template JS_MKPTR*(t, p: untyped): JSValue =
     JSValue((cast[uint64](t) shl 32) or cast[uint](p))