From b93f67f2ceacef971cb9e210219fe91e8d6e75e0 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 10 Jun 2003 09:36:26 -0300 Subject: [PATCH] detail --- lobject.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lobject.c b/lobject.c index 26accff2..28ae45c5 100644 --- a/lobject.c +++ b/lobject.c @@ -1,5 +1,5 @@ /* -** $Id: lobject.c,v 1.97 2003/04/03 13:35:34 roberto Exp roberto $ +** $Id: lobject.c,v 1.98 2003/04/28 13:30:14 roberto Exp roberto $ ** Some generic functions over Lua objects ** See Copyright Notice in lua.h */ @@ -129,7 +129,14 @@ const char *luaO_pushvfstring (lua_State *L, const char *fmt, va_list argp) { case '%': pushstr(L, "%"); break; - default: lua_assert(0); + default: { + char buff[3]; + buff[0] = '%'; + buff[1] = *(e+1); + buff[2] = '\0'; + pushstr(L, buff); + break; + } } n += 2; fmt = e+2;