diff options
Diffstat (limited to 'lstrlib.c')
| -rw-r--r-- | lstrlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstrlib.c,v 1.59 2000/12/04 14:43:06 roberto Exp roberto $ | 2 | ** $Id: lstrlib.c,v 1.60 2000/12/18 13:41:41 roberto Exp roberto $ |
| 3 | ** Standard library for string operations and pattern-matching | 3 | ** Standard library for string operations and pattern-matching |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -43,7 +43,7 @@ static int str_sub (lua_State *L) { | |||
| 43 | if (end > (sint32)l) end = l; | 43 | if (end > (sint32)l) end = l; |
| 44 | if (start <= end) | 44 | if (start <= end) |
| 45 | lua_pushlstring(L, s+start-1, end-start+1); | 45 | lua_pushlstring(L, s+start-1, end-start+1); |
| 46 | else lua_pushstring(L, ""); | 46 | else lua_pushliteral(L, ""); |
| 47 | return 1; | 47 | return 1; |
| 48 | } | 48 | } |
| 49 | 49 | ||
