External strings are as good as internal ones
A '__mode' metafield and an "n" key both can be external strings.
This commit is contained in:
2
ltm.c
2
ltm.c
@@ -287,7 +287,7 @@ void luaT_getvararg (CallInfo *ci, StkId ra, TValue *rc) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if (ttisshrstring(rc)) { /* short-string value? */
|
||||
else if (ttisstring(rc)) { /* string value? */
|
||||
size_t len;
|
||||
const char *s = getlstr(tsvalue(rc), len);
|
||||
if (len == 1 && s[0] == 'n') { /* key is "n"? */
|
||||
|
||||
Reference in New Issue
Block a user