From b7c7f7a06a006ee07eb9f6adf1fd3e50b0758fc0 Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Fri, 25 Oct 2019 14:30:38 -0500 Subject: Fix size_t conversion --- nimterop/getters.nim | 4 ++-- tests/tpcre.nim | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nimterop/getters.nim b/nimterop/getters.nim index 9970981..558e687 100644 --- a/nimterop/getters.nim +++ b/nimterop/getters.nim @@ -46,12 +46,12 @@ const gTypeMap* = { "int": "cint", "signed": "cint", "signed int": "cint", - "ssize_t": "cint", + "ssize_t": "int", "unsigned": "cuint", "unsigned int": "cuint", "uInt": "cuint", "u_int": "cuint", - "size_t": "cuint", + "size_t": "uint", # long "long": "clong", diff --git a/tests/tpcre.nim b/tests/tpcre.nim index 41809cb..0aa5a3b 100644 --- a/tests/tpcre.nim +++ b/tests/tpcre.nim @@ -34,7 +34,7 @@ cImport(pcreH, dynlib="dynpcre") echo version() -proc my_malloc(a1: cuint) {.cdecl.} = +proc my_malloc(a1: uint) {.cdecl.} = discard malloc = my_malloc -- cgit v1.2.3