From 2cf74b74d1c57940037d23c4a7b44ba2afd38725 Mon Sep 17 00:00:00 2001 From: bptato Date: Fri, 15 Sep 2023 11:23:29 +0200 Subject: bindings: fix JSInterruptHandler signature --- src/local/client.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/local/client.nim') 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: -- cgit 1.4.1-2-gfad0