summaryrefslogtreecommitdiff
path: root/src/lstrlib.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-01-29 14:46:36 +1100
committerdaurnimator <quae@daurnimator.com>2018-01-29 14:49:42 +1100
commit32fee0764e9e5e1a903ef5d16fb94718a86d7a09 (patch)
tree691c82fac8532ec4138c6fc9ed38f21018bd7a8f /src/lstrlib.js
parent1046bc323bb5d59b894377ea8af53c3b8f38ad6f (diff)
downloadfengari-32fee0764e9e5e1a903ef5d16fb94718a86d7a09.tar.gz
fengari-32fee0764e9e5e1a903ef5d16fb94718a86d7a09.tar.bz2
fengari-32fee0764e9e5e1a903ef5d16fb94718a86d7a09.zip
src/{luaconf,lobject,lstrlib}.js: lua_getlocaledecpoint now returns char code instead of string
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 */
}