summaryrefslogtreecommitdiff
path: root/src/lapi.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lapi.js')
-rw-r--r--src/lapi.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lapi.js b/src/lapi.js
index 1fb8baa..d2f5c95 100644
--- a/src/lapi.js
+++ b/src/lapi.js
@@ -800,7 +800,7 @@ const lua_stringtonumber = function(L, s) {
if (tv) {
L.stack[L.top++] = tv;
assert(L.top <= L.ci.top, "stack overflow");
- return s.length;
+ return s.length+1;
}
return 0;
};