Skip to content

Commit c736dd8

Browse files
committed
PR: Fix casting issue.
1 parent af97d00 commit c736dd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/new_spec.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ describe("test image creation", function()
177177
local width = 64
178178
local height = 32
179179
local size = width * height
180-
local data = ffi.gc(ffi.C.malloc(size), ffi.C.free)
180+
local data = ffi.gc(ffi.cast("unsigned char*", ffi.C.malloc(size)), ffi.C.free)
181181

182182
for y = 0, height - 1 do
183183
for x = 0, width - 1 do

0 commit comments

Comments
 (0)