aboutsummaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
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