Skip to content

Commit

Permalink
Fix warning on fallthrough case
Browse files Browse the repository at this point in the history
  • Loading branch information
Rochet2 committed Jan 15, 2024
1 parent 1292ba9 commit 454010c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions LuaValue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,10 @@ LuaVal LuaVal::AsLuaVal(lua_State* L, int index)
case LUA_TUSERDATA:
if (LuaVal* ptr = GetLuaVal(L, index))
return ptr->reference();
default:
luaL_argerror(L, index, "Trying to use unsupported type");
return LuaVal();
break;
}
luaL_argerror(L, index, "Trying to use unsupported type");
return LuaVal();
}

int LuaVal::lua_AsLuaVal(lua_State* L)
Expand Down

0 comments on commit 454010c

Please sign in to comment.