diff options
author | Lua Team <team@lua.org> | 2007-03-26 12:00:00 +0000 |
---|---|---|
committer | repogen <> | 2007-03-26 12:00:00 +0000 |
commit | d368f86a9d2a03bd5c3c0fae7f626ea8e2e6dc59 (patch) | |
tree | ae37b73d0b2f8224eb6c1cdbe5d474b511266acc /src/lvm.c | |
parent | cf61d326a6adbeb4ea9467af3fe4da1af8784f01 (diff) | |
download | lua-github-5.1.2-rc3.tar.gz |
Lua 5.1.2-rc35.1.2-rc3
Diffstat (limited to 'src/lvm.c')
-rw-r--r-- | src/lvm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -165,7 +165,7 @@ static int call_binTM (lua_State *L, const TValue *p1, const TValue *p2, const TValue *tm = luaT_gettmbyobj(L, p1, event); /* try first operand */ if (ttisnil(tm)) tm = luaT_gettmbyobj(L, p2, event); /* try second operand */ - if (!ttisfunction(tm)) return 0; + if (ttisnil(tm)) return 0; callTMres(L, res, tm, p1, p2); return 1; } @@ -285,7 +285,7 @@ void luaV_concat (lua_State *L, int total, int last) { if (!call_binTM(L, top-2, top-1, top-2, TM_CONCAT)) luaG_concaterror(L, top-2, top-1); } else if (tsvalue(top-1)->len == 0) /* second op is empty? */ - tostring(L, top - 2); /* result is first op (as string) */ + (void)tostring(L, top - 2); /* result is first op (as string) */ else { /* at least two string values; get as many as possible */ size_t tl = tsvalue(top-1)->len; |