fixed missing return values

those did not trigger problems with Lua-5.1.x, but they do with LuaJIT
This commit is contained in:
HW
2012-06-03 01:51:05 +02:00
parent 7952220b41
commit b07470535f

View File

@@ -53,6 +53,7 @@ static int loadPNGData(lua_State *L) {
fz_catch(img->context) {
return luaL_error(L, "cannot load PNG data");
}
return 0;
}
static int loadJPEGData(lua_State *L) {
@@ -65,6 +66,7 @@ static int loadJPEGData(lua_State *L) {
fz_catch(img->context) {
return luaL_error(L, "cannot open JPEG data");
}
return 0;
}
static int toBlitBuffer(lua_State *L) {