aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-12-30 02:19:55 +1100
committerdaurnimator <quae@daurnimator.com>2017-12-30 02:19:55 +1100
commitca087aef0afc793e52e870da57cfddb17eeb5701 (patch)
tree93c1a9a888d05b79573438cb74e782c0063e6a8c
parent8254a7645a7fbf8588565bd40a3836779ec955b3 (diff)
downloadfengari-ca087aef0afc793e52e870da57cfddb17eeb5701.tar.gz
fengari-ca087aef0afc793e52e870da57cfddb17eeb5701.tar.bz2
fengari-ca087aef0afc793e52e870da57cfddb17eeb5701.zip
src/luaconf.js: Fix bug introduced in c260105662e28778fe129a3a4500c1baf40ea109
-rw-r--r--src/luaconf.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luaconf.js b/src/luaconf.js
index 0843703..4bf8583 100644
--- a/src/luaconf.js
+++ b/src/luaconf.js
@@ -24,7 +24,7 @@ const lua_integer2str = function(n) {
};
const lua_number2str = function(n) {
- return String(Number(n.toPrecision(n))); /* should match behaviour of LUA_NUMBER_FMT */
+ return String(Number(n.toPrecision(14))); /* should match behaviour of LUA_NUMBER_FMT */
};
const lua_numbertointeger = function(n) {