squelch silly MSVC warning

This commit is contained in:
2024-02-26 23:16:11 -06:00
parent d2e769ea30
commit dc36e719eb
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@@ -16,5 +16,6 @@
*.obj *.obj
*.exp *.exp
*.dll *.dll
*.rock
.cache/ .cache/
compile_commands.json compile_commands.json

View File

@@ -266,7 +266,8 @@ inline ConstraintData* constraint_new(
push_type(L, CONSTRAINT); push_type(L, CONSTRAINT);
lua_setmetatable(L, -2); 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_rawgeti(L, lua_upvalueindex(1), MEM_ERR_MSG);
lua_error(L); lua_error(L);
} }