We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7d219a commit 434feffCopy full SHA for 434feff
1 file changed
IOS/SDK/LuaViewSDK/Classes/lvsdk/LVFile.m
@@ -50,9 +50,9 @@ static int file_save (lua_State *L) {
50
if (i == 1 && lua_type(L, i) == LUA_TSTRING){
51
fileName = lv_paramString(L, i);
52
}else if (i == 2){
53
- if (lua_type(L, LUA_TSTRING)){
+ if (lua_type(L, i) == LUA_TSTRING){
54
contentString = lv_paramString(L, i);
55
- }else if (lua_type(L, LUA_TUSERDATA)){
+ }else if (lua_type(L, i) == LUA_TUSERDATA){
56
contentData = (LVUserDataInfo *)lua_touserdata(L, i);
57
}
58
}else if (i == 3 && lua_type(L, i) == LUA_TFUNCTION){
0 commit comments