diff options
Diffstat (limited to '')
| -rw-r--r-- | src/3rdParty/lua/lapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/3rdParty/lua/lapi.c b/src/3rdParty/lua/lapi.c index 34e64af..332e97d 100644 --- a/src/3rdParty/lua/lapi.c +++ b/src/3rdParty/lua/lapi.c | |||
| @@ -417,9 +417,9 @@ LUA_API const char *lua_tolstring (lua_State *L, int idx, size_t *len) { | |||
| 417 | o = index2value(L, idx); /* previous call may reallocate the stack */ | 417 | o = index2value(L, idx); /* previous call may reallocate the stack */ |
| 418 | } | 418 | } |
| 419 | if (len != NULL) | 419 | if (len != NULL) |
| 420 | *len = vslen(o); | 420 | *len = tsslen(tsvalue(o)); |
| 421 | lua_unlock(L); | 421 | lua_unlock(L); |
| 422 | return svalue(o); | 422 | return getstr(tsvalue(o)); |
| 423 | } | 423 | } |
| 424 | 424 | ||
| 425 | 425 | ||
