diff options
Diffstat (limited to 'lib/lua/src/ldebug.c')
-rw-r--r-- | lib/lua/src/ldebug.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/lua/src/ldebug.c b/lib/lua/src/ldebug.c index 7d606c6..55d52c8 100644 --- a/lib/lua/src/ldebug.c +++ b/lib/lua/src/ldebug.c @@ -1,5 +1,5 @@ /* -** $Id: ldebug.c,v 1.7 2007-07-27 10:05:53 pixel Exp $ +** $Id: ldebug.c,v 1.8 2008-02-17 00:35:20 pixel Exp $ ** Debug Interface ** See Copyright Notice in lua.h */ @@ -593,8 +593,8 @@ void luaG_typeerror (lua_State *L, const TValue *o, const char *op) { void luaG_concaterror (lua_State *L, StkId p1, StkId p2) { - if (ttisstring(p1)) p1 = p2; - lua_assert(!ttisstring(p1)); + if (ttisstring(p1) || ttisnumber(p1)) p1 = p2; + lua_assert(!ttisstring(p1) && !ttisnumber(p1)); luaG_typeerror(L, p1, "concatenate"); } |