aboutsummaryrefslogtreecommitdiff
path: root/src/library.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-04-02 13:20:20 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-04-02 13:20:20 -0700
commitd061071c37db687389e2f8aad64741d1ce9a2ad0 (patch)
tree9d075504e06bb0bbc539b96aa4b2b39251408604 /src/library.js
parent1823aaf13bfbbc3cbbe6c8dc9ff153361f0bcf4a (diff)
only include i64 precise code if it will actually be used
Diffstat (limited to 'src/library.js')
-rw-r--r--src/library.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library.js b/src/library.js
index f49a8a58..be5e48d7 100644
--- a/src/library.js
+++ b/src/library.js
@@ -2507,12 +2507,12 @@ LibraryManager.library = {
var prefix = '';
if (next == 'd'.charCodeAt(0) || next == 'i'.charCodeAt(0)) {
#if PRECISE_I64_MATH == 1
- if (argSize == 8) argText = i64Math.stringify(origArg[0], origArg[1]); else
+ if (argSize == 8 && i64Math) argText = i64Math.stringify(origArg[0], origArg[1]); else
#endif
argText = reSign(currArg, 8 * argSize, 1).toString(10);
} else if (next == 'u'.charCodeAt(0)) {
#if PRECISE_I64_MATH == 1
- if (argSize == 8) argText = i64Math.stringify(origArg[0], origArg[1], true); else
+ if (argSize == 8 && i64Math) argText = i64Math.stringify(origArg[0], origArg[1], true); else
#endif
argText = unSign(currArg, 8 * argSize, 1).toString(10);
currArg = Math.abs(currArg);