diff options
-rw-r--r-- | src/lib_ffi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib_ffi.c b/src/lib_ffi.c index cf9cf9f5..1422dea6 100644 --- a/src/lib_ffi.c +++ b/src/lib_ffi.c | |||
@@ -304,7 +304,7 @@ LJLIB_CF(ffi_meta___tostring) | |||
304 | p = *(void **)p; | 304 | p = *(void **)p; |
305 | } else if (ctype_isenum(ct->info)) { | 305 | } else if (ctype_isenum(ct->info)) { |
306 | msg = "cdata<%s>: %d"; | 306 | msg = "cdata<%s>: %d"; |
307 | p = (void *)(uintptr_t)*(uint32_t **)p; | 307 | p = (void *)(uintptr_t)*(uint32_t *)p; |
308 | } else { | 308 | } else { |
309 | if (ctype_isptr(ct->info)) { | 309 | if (ctype_isptr(ct->info)) { |
310 | p = cdata_getptr(p, ct->size); | 310 | p = cdata_getptr(p, ct->size); |