aboutsummaryrefslogtreecommitdiff
path: root/src/wrapper/curl.nim
diff options
context:
space:
mode:
authorkitsunyan2020-04-26 05:15:57 +0000
committerkitsunyan2020-04-26 05:15:57 +0000
commit138b310de4badfc765151c5d31923ad9167b3a14 (patch)
tree7f4f78ddc5d8da032264ef6a8a0a58079f922011 /src/wrapper/curl.nim
parentdcbeb5528fab8eed5e818ac1360c142fa647490f (diff)
Fix warnings introduced in nim 1.2
Diffstat (limited to 'src/wrapper/curl.nim')
-rw-r--r--src/wrapper/curl.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wrapper/curl.nim b/src/wrapper/curl.nim
index 98d6880..9abb341 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[csize_t.high, char], size: csize_t, nmemb: csize_t,
+ userdata: ref CurlInstance): csize_t {.cdecl.} =
let total = size * nmemb
if total > 0:
userData.data &= mem[0 .. total - 1]