about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/bindings/quickjs.nim2
-rw-r--r--src/local/client.nim2
2 files changed, 2 insertions, 2 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.}
diff --git a/src/local/client.nim b/src/local/client.nim
index 72b9cc11..7b27e9c4 100644
--- a/src/local/client.nim
+++ b/src/local/client.nim
@@ -110,7 +110,7 @@ proc fetch[T: Request|string](client: Client, req: T,
   let req = ?newRequest(client.jsctx, req, init)
   return ok(client.loader.fetch(req))
 
-proc interruptHandler(rt: JSRuntime, opaque: pointer): int {.cdecl.} =
+proc interruptHandler(rt: JSRuntime, opaque: pointer): cint {.cdecl.} =
   let client = cast[Client](opaque)
   if client.console == nil or client.console.tty == nil: return
   try: