summaryrefslogtreecommitdiff
path: root/src/lstrlib.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lstrlib.js')
-rw-r--r--src/lstrlib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lstrlib.js b/src/lstrlib.js
index afed664..9863ba5 100644
--- a/src/lstrlib.js
+++ b/src/lstrlib.js
@@ -255,7 +255,7 @@ const addquoted = function(b, s, len) {
*/
const checkdp = function(buff) {
if (luastring_indexOf(buff, '.'.charCodeAt(0)) < 0) { /* no dot? */
- let point = lua_getlocaledecpoint().charCodeAt(0); /* try locale point */
+ let point = lua_getlocaledecpoint(); /* try locale point */
let ppoint = luastring_indexOf(buff, point);
if (ppoint) buff[ppoint] = '.'; /* change it to a dot */
}