aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nimterop/getters.nim4
-rw-r--r--tests/tpcre.nim2
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