From 0acd054e71d56d04eabdbaf1779ac4b5e5b22ee3 Mon Sep 17 00:00:00 2001 From: Pawel Kolodziejski Date: Sun, 3 Aug 2008 18:33:59 +0000 Subject: [PATCH] compilation fixes --- engine/lua/lstrlib.cpp | 2 +- engine/lua/ltable.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)) {