Skip to content

Commit

Permalink
squelch silly MSVC warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jkl1337 committed Feb 27, 2024
1 parent d2e769e commit dc36e71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
*.obj
*.exp
*.dll
*.rock
.cache/
compile_commands.json
3 changes: 2 additions & 1 deletion luakiwi/luakiwi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ inline ConstraintData* constraint_new(
push_type(L, CONSTRAINT);
lua_setmetatable(L, -2);

if (lk_unlikely(!(*c = kiwi_constraint_new(lhs, rhs, op, strength)))) {
*c = kiwi_constraint_new(lhs, rhs, op, strength);
if (lk_unlikely(!*c)) {
lua_rawgeti(L, lua_upvalueindex(1), MEM_ERR_MSG);
lua_error(L);
}
Expand Down

0 comments on commit dc36e71

Please sign in to comment.