diff options
author | zqqw | 2020-07-19 14:44:34 +0000 |
---|---|---|
committer | zqqw | 2020-07-19 14:44:34 +0000 |
commit | b2321b0ded6f4a9803daf9dbcbd88d56321a9305 (patch) | |
tree | 3a2768d9da3cc4349628974c5dd8cd3316656789 /src/wrapper/curl.nim | |
parent | d2030e0bf79d8a2252ae4750dbb0086bd06b72cb (diff) |
Fix map error & some warnings
Diffstat (limited to 'src/wrapper/curl.nim')
-rw-r--r-- | src/wrapper/curl.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wrapper/curl.nim b/src/wrapper/curl.nim index 98d6880..5597ef1 100644 --- a/src/wrapper/curl.nim +++ b/src/wrapper/curl.nim @@ -18,7 +18,7 @@ type url = 10002, writeFunction = 20011 - CurlError* = object of Exception + CurlError* = object of CatchableError {.passL: "-lcurl".} @@ -58,8 +58,8 @@ proc escape*(instance: ref CurlInstance, s: string): string = else: "" -proc curlWriteMemory(mem: array[csize.high, char], size: csize, nmemb: csize, - userdata: ref CurlInstance): csize {.cdecl.} = +proc curlWriteMemory(mem: array[int.high, char], size: int, nmemb: int, + userdata: ref CurlInstance): int {.cdecl.} = let total = size * nmemb if total > 0: userData.data &= mem[0 .. total - 1] |