Details
Corrections in comments and manual. Added note in the manual about local variables in the REPL.
This commit is contained in:
8
lvm.c
8
lvm.c
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user