diff --git a/engine/lua/lstrlib.cpp b/engine/lua/lstrlib.cpp index dfbb6a5a92e..74a0570af09 100644 --- a/engine/lua/lstrlib.cpp +++ b/engine/lua/lstrlib.cpp @@ -279,7 +279,7 @@ init: case '-': { // repetition const char *res; - if (res = match(s, ep + 1, cap)) + if ((res = match(s, ep + 1, cap))) return res; else if (s1 && s1 > s) { s = s1; diff --git a/engine/lua/ltable.cpp b/engine/lua/ltable.cpp index 52ee66c69d3..cd5cb5e26f9 100644 --- a/engine/lua/ltable.cpp +++ b/engine/lua/ltable.cpp @@ -18,7 +18,7 @@ #define TagDefault LUA_T_ARRAY; #ifdef TARGET_64BITS -static int64 int hashindex(TObject *ref) { +static int64 hashindex(TObject *ref) { int64 h; switch (ttype(ref)) {