Corrections in comments and manual. Added note in the manual about
local variables in the REPL.
This commit is contained in:
Roberto Ierusalimschy
2024-05-08 17:50:10 -03:00
parent 9d985db7bb
commit 262dc5729a
9 changed files with 36 additions and 21 deletions

8
lvm.c
View File

@@ -92,10 +92,10 @@ static int l_strton (const TValue *obj, TValue *result) {
if (!cvt2num(obj)) /* is object not a string? */
return 0;
else {
TString *st = tsvalue(obj);
size_t stlen;
const char *s = getlstr(st, stlen);
return (luaO_str2num(s, result) == stlen + 1);
TString *st = tsvalue(obj);
size_t stlen;
const char *s = getlstr(st, stlen);
return (luaO_str2num(s, result) == stlen + 1);
}
}