diff options
author | bptato <nincsnevem662@gmail.com> | 2022-09-16 03:46:13 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-09-16 03:48:36 +0200 |
commit | 23caa878a3854dd0118792e1c051b5412ec345cc (patch) | |
tree | 0294ecb329765ed7f8960182224f397c46407580 /src/bindings | |
parent | 3f96681261692feedadfb8c488f3908dd80bb01c (diff) | |
download | chawan-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.nim | 2 |
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)) |