@@ -941,7 +941,7 @@ void luax_runwrapper(lua_State *L, const char *filedata, size_t datalen, const c
{
luax_gettypemetatable(L, type);
- // Load and execute ImageData.lua, sending the metatable and the ffi
+ // Load and execute the given Lua file, sending the metatable and the ffi
// functions struct pointer as arguments.
if (lua_istable(L, -1))
@@ -368,7 +368,7 @@ local objectcache = setmetatable({}, {
width = width,
height = height,
format = format,
- pointer = ffi.cast(conv.pointer, imagedata:getPointer()),
+ pointer = ffi.cast(conv.pointer, imagedata:getFFIPointer()),
tolua = conv.tolua,
fromlua = conv.fromlua,
}
@@ -55,7 +55,7 @@ local objectcache = setmetatable({}, {
__mode = "k",
__index = function(self, sounddata)
local bytedepth = _getBitDepth(sounddata) / 8
- local pointer = ffi.cast(datatypes[bytedepth], sounddata:getPointer())
+ local pointer = ffi.cast(datatypes[bytedepth], sounddata:getFFIPointer())
local p = {
bytedepth = bytedepth,