aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-01-13 16:51:40 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-01-13 16:52:07 -0800
commitaf59788f8b7b76515e36bee1bf66edf497b801db (patch)
tree496f7f9ba9335cd7dba41ca5050073f23fbc139b /src
parent7844db37f5b6dce1e7772f955ff606ef806ae032 (diff)
unset precision if set to -1
Diffstat (limited to 'src')
-rw-r--r--src/library.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js
index 6cbe7854..b1eb0be3 100644
--- a/src/library.js
+++ b/src/library.js
@@ -1970,7 +1970,10 @@ LibraryManager.library = {
}
next = {{{ makeGetValue(0, 'textIndex+1', 'i8') }}};
}
- if (precision === -1) precision = 6; // Standard default.
+ if (precision === -1) {
+ precision = 6; // Standard default.
+ precisionSet = false;
+ }
// Handle integer sizes. WARNING: These assume a 32-bit architecture!
var argSize;