squelch silly MSVC warning
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -16,5 +16,6 @@
|
|||||||
*.obj
|
*.obj
|
||||||
*.exp
|
*.exp
|
||||||
*.dll
|
*.dll
|
||||||
|
*.rock
|
||||||
.cache/
|
.cache/
|
||||||
compile_commands.json
|
compile_commands.json
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user