about summary refs log tree commit diff stats
path: root/src/bindings
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-09-15 11:23:29 +0200
committerbptato <nincsnevem662@gmail.com>2023-09-15 11:23:29 +0200
commit2cf74b74d1c57940037d23c4a7b44ba2afd38725 (patch)
tree989ff084cdedf953acc60a354a33042fe401f171 /src/bindings
parentf2930dad3e29e71a446bfcf2d04078af02fdedd0 (diff)
downloadchawan-2cf74b74d1c57940037d23c4a7b44ba2afd38725.tar.gz
bindings: fix JSInterruptHandler signature
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 a81bd881..7169c480 100644
--- a/src/bindings/quickjs.nim
+++ b/src/bindings/quickjs.nim
@@ -74,7 +74,7 @@ type
   JSSetterFunction* = proc(ctx: JSContext, this_val: JSValue, val: JSValue): JSValue {.cdecl.}
   JSGetterMagicFunction* = proc(ctx: JSContext, this_val: JSValue, magic: cint): JSValue {.cdecl.}
   JSSetterMagicFunction* = proc(ctx: JSContext, this_val: JSValue, val: JSValue, magic: cint): JSValue {.cdecl.}
-  JSInterruptHandler* = proc (rt: JSRuntime, opaque: pointer): int {.cdecl.}
+  JSInterruptHandler* = proc (rt: JSRuntime, opaque: pointer): cint {.cdecl.}
   JSClassID* = uint32
   JSAtom* = uint32
   JSClassFinalizer* = proc (rt: JSRuntime, val: JSValue) {.cdecl.}