diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-05-08 17:50:10 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-05-08 17:50:10 -0300 |
commit | 262dc5729a28b2bad0b6413d4eab2290d14395cf (patch) | |
tree | c92cbf6c6d5d88bc352dd71f7f27be4dd44cf16f /lvm.c | |
parent | 9d985db7bb09c92b5b3fa660fffe5907d01e6a02 (diff) | |
download | lua-262dc5729a28b2bad0b6413d4eab2290d14395cf.tar.gz lua-262dc5729a28b2bad0b6413d4eab2290d14395cf.tar.bz2 lua-262dc5729a28b2bad0b6413d4eab2290d14395cf.zip |
Details
Corrections in comments and manual. Added note in the manual about
local variables in the REPL.
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -92,10 +92,10 @@ static int l_strton (const TValue *obj, TValue *result) { | |||
92 | if (!cvt2num(obj)) /* is object not a string? */ | 92 | if (!cvt2num(obj)) /* is object not a string? */ |
93 | return 0; | 93 | return 0; |
94 | else { | 94 | else { |
95 | TString *st = tsvalue(obj); | 95 | TString *st = tsvalue(obj); |
96 | size_t stlen; | 96 | size_t stlen; |
97 | const char *s = getlstr(st, stlen); | 97 | const char *s = getlstr(st, stlen); |
98 | return (luaO_str2num(s, result) == stlen + 1); | 98 | return (luaO_str2num(s, result) == stlen + 1); |
99 | } | 99 | } |
100 | } | 100 | } |
101 | 101 | ||