From 4ff55457095728b95cc5dcdbab0bca7255bd5387 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 10 Jan 2001 14:58:11 -0200 Subject: new macro pushliteral --- lstrlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lstrlib.c') diff --git a/lstrlib.c b/lstrlib.c index 5db499dd..9a8823a6 100644 --- a/lstrlib.c +++ b/lstrlib.c @@ -1,5 +1,5 @@ /* -** $Id: lstrlib.c,v 1.59 2000/12/04 14:43:06 roberto Exp roberto $ +** $Id: lstrlib.c,v 1.60 2000/12/18 13:41:41 roberto Exp roberto $ ** Standard library for string operations and pattern-matching ** See Copyright Notice in lua.h */ @@ -43,7 +43,7 @@ static int str_sub (lua_State *L) { if (end > (sint32)l) end = l; if (start <= end) lua_pushlstring(L, s+start-1, end-start+1); - else lua_pushstring(L, ""); + else lua_pushliteral(L, ""); return 1; } -- cgit v1.2.3-55-g6feb