diff options
author | bptato <nincsnevem662@gmail.com> | 2023-12-23 13:32:41 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-12-23 13:35:40 +0100 |
commit | f231ffeffb9bcbffde5429262a13dfad3ea89f5c (patch) | |
tree | bb7c1c5b912341cf93c9ba0103574cee651a58dc /src/bindings | |
parent | 1088cc3b01c0dacd4ce017803b89dc47fb55bee6 (diff) | |
download | chawan-f231ffeffb9bcbffde5429262a13dfad3ea89f5c.tar.gz |
bindings/quickjs: cint -> csize_t
cint was incorrect :/ Makes me wonder if maybe we should just use futhark after all...
Diffstat (limited to 'src/bindings')
-rw-r--r-- | src/bindings/quickjs.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bindings/quickjs.nim b/src/bindings/quickjs.nim index c7c9554f..ab2d75ad 100644 --- a/src/bindings/quickjs.nim +++ b/src/bindings/quickjs.nim @@ -460,7 +460,8 @@ proc JS_GetNarrowStringBuffer*(str: JSString): ptr UncheckedArray[uint8] proc JS_GetWideStringBuffer*(str: JSString): ptr UncheckedArray[uint16] proc JS_GetStringLength*(str: JSString): uint32 -proc JS_Eval*(ctx: JSContext, input: cstring, input_len: cint, filename: cstring, eval_flags: cint): JSValue +proc JS_Eval*(ctx: JSContext, input: cstring, input_len: csize_t, + filename: cstring, eval_flags: cint): JSValue proc JS_SetInterruptHandler*(rt: JSRuntime, cb: JSInterruptHandler, opaque: pointer) proc JS_SetCanBlock*(rt: JSRuntime, can_block: JS_BOOL) proc JS_SetIsHTMLDDA*(ctx: JSContext, obj: JSValue) |