diff options
Diffstat (limited to 'lobject.c')
| -rw-r--r-- | lobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lobject.c,v 1.90 2002/10/08 18:46:08 roberto Exp roberto $ | 2 | ** $Id: lobject.c,v 1.91 2002/10/22 17:18:28 roberto Exp roberto $ |
| 3 | ** Some generic functions over Lua objects | 3 | ** Some generic functions over Lua objects |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -86,7 +86,7 @@ int luaO_str2d (const char *s, lua_Number *result) { | |||
| 86 | 86 | ||
| 87 | 87 | ||
| 88 | static void pushstr (lua_State *L, const char *str) { | 88 | static void pushstr (lua_State *L, const char *str) { |
| 89 | setsvalue(L->top, luaS_new(L, str)); | 89 | setsvalue2s(L->top, luaS_new(L, str)); |
| 90 | incr_top(L); | 90 | incr_top(L); |
| 91 | } | 91 | } |
| 92 | 92 | ||
| @@ -98,7 +98,7 @@ const char *luaO_pushvfstring (lua_State *L, const char *fmt, va_list argp) { | |||
| 98 | for (;;) { | 98 | for (;;) { |
| 99 | const char *e = strchr(fmt, '%'); | 99 | const char *e = strchr(fmt, '%'); |
| 100 | if (e == NULL) break; | 100 | if (e == NULL) break; |
| 101 | setsvalue(L->top, luaS_newlstr(L, fmt, e-fmt)); | 101 | setsvalue2s(L->top, luaS_newlstr(L, fmt, e-fmt)); |
| 102 | incr_top(L); | 102 | incr_top(L); |
| 103 | switch (*(e+1)) { | 103 | switch (*(e+1)) { |
| 104 | case 's': | 104 | case 's': |
