diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2019-10-25 14:30:38 -0500 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2019-10-25 14:30:38 -0500 |
| commit | b7c7f7a06a006ee07eb9f6adf1fd3e50b0758fc0 (patch) | |
| tree | 081362e703f2a6c787bdc64efcbd342255fce26e | |
| parent | 8e9bd0da0d321f5548d90c34debaaf7dec780bda (diff) | |
| download | nimterop-b7c7f7a06a006ee07eb9f6adf1fd3e50b0758fc0.tar.gz nimterop-b7c7f7a06a006ee07eb9f6adf1fd3e50b0758fc0.zip | |
Fix size_t conversion
| -rw-r--r-- | nimterop/getters.nim | 4 | ||||
| -rw-r--r-- | 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 |
