aboutsummaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-05-08 17:50:10 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-05-08 17:50:10 -0300
commit262dc5729a28b2bad0b6413d4eab2290d14395cf (patch)
treec92cbf6c6d5d88bc352dd71f7f27be4dd44cf16f /lvm.c
parent9d985db7bb09c92b5b3fa660fffe5907d01e6a02 (diff)
downloadlua-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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lvm.c b/lvm.c
index 37023afb..88f8fe27 100644
--- a/lvm.c
+++ b/lvm.c
@@ -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