diff options
author | bptato <nincsnevem662@gmail.com> | 2023-09-15 11:23:29 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-09-15 11:23:29 +0200 |
commit | 2cf74b74d1c57940037d23c4a7b44ba2afd38725 (patch) | |
tree | 989ff084cdedf953acc60a354a33042fe401f171 /src/local/client.nim | |
parent | f2930dad3e29e71a446bfcf2d04078af02fdedd0 (diff) | |
download | chawan-2cf74b74d1c57940037d23c4a7b44ba2afd38725.tar.gz |
bindings: fix JSInterruptHandler signature
Diffstat (limited to 'src/local/client.nim')
-rw-r--r-- | src/local/client.nim | 2 |
1 files changed, 1 insertions, 1 deletions
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: |