mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fixed missing return values
those did not trigger problems with Lua-5.1.x, but they do with LuaJIT
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user