aboutsummaryrefslogtreecommitdiff
path: root/src/wrapper/curl.nim
diff options
context:
space:
mode:
authorBenjamin Shirley-Quirk2020-08-04 21:29:42 +0000
committerBenjamin Shirley-Quirk2020-08-04 21:29:42 +0000
commit31108f15f5d1e9cc88ff4207658bf5155b184108 (patch)
tree518597af77ad280d5dd2fb9884f6660877059ec2 /src/wrapper/curl.nim
parentb47df19c354e6b1c3c438b57eb463bbfaa8fd08d (diff)
removed csize_t warnings, required casting a len to csize_t
Diffstat (limited to 'src/wrapper/curl.nim')
-rw-r--r--src/wrapper/curl.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wrapper/curl.nim b/src/wrapper/curl.nim
index 98d6880..79468a9 100644
--- a/src/wrapper/curl.nim
+++ b/src/wrapper/curl.nim
@@ -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]