Fix size_t conversion

This commit is contained in:
Ganesh Viswanathan 2019-10-25 14:30:38 -05:00
commit b7c7f7a06a
2 changed files with 3 additions and 3 deletions

View file

@ -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",

View file

@ -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