Fix size_t conversion
This commit is contained in:
parent
8e9bd0da0d
commit
b7c7f7a06a
2 changed files with 3 additions and 3 deletions
|
|
@ -46,12 +46,12 @@ const gTypeMap* = {
|
||||||
"int": "cint",
|
"int": "cint",
|
||||||
"signed": "cint",
|
"signed": "cint",
|
||||||
"signed int": "cint",
|
"signed int": "cint",
|
||||||
"ssize_t": "cint",
|
"ssize_t": "int",
|
||||||
"unsigned": "cuint",
|
"unsigned": "cuint",
|
||||||
"unsigned int": "cuint",
|
"unsigned int": "cuint",
|
||||||
"uInt": "cuint",
|
"uInt": "cuint",
|
||||||
"u_int": "cuint",
|
"u_int": "cuint",
|
||||||
"size_t": "cuint",
|
"size_t": "uint",
|
||||||
|
|
||||||
# long
|
# long
|
||||||
"long": "clong",
|
"long": "clong",
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ cImport(pcreH, dynlib="dynpcre")
|
||||||
|
|
||||||
echo version()
|
echo version()
|
||||||
|
|
||||||
proc my_malloc(a1: cuint) {.cdecl.} =
|
proc my_malloc(a1: uint) {.cdecl.} =
|
||||||
discard
|
discard
|
||||||
|
|
||||||
malloc = my_malloc
|
malloc = my_malloc
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue