aboutsummaryrefslogtreecommitdiff
path: root/src/preamble.js
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2010-12-12 15:05:22 -0800
committerAlon Zakai <azakai@mozilla.com>2010-12-12 15:05:22 -0800
commit6d83c785fb2f9befb0af92f57b5c5f8e5242ba49 (patch)
treeda83e3cb3126df53ddb0aed7f45430330a0f5b07 /src/preamble.js
parent240ff2ff8e8d797740a6ee1dd534240afed6d6e5 (diff)
support for library dependencies +misc python float fixes
Diffstat (limited to 'src/preamble.js')
-rw-r--r--src/preamble.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/preamble.js b/src/preamble.js
index 3494053a..e577ba3c 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -203,7 +203,7 @@ function __initializeRuntime__() {
FHEAP = HEAP; // fallback
}
#else
- IHEAP = HEAP; // We use that name in our runtime code that processes strings etc., see library.js
+ IHEAP = FHEAP = HEAP;
#endif
Module['HEAP'] = HEAP;
@@ -281,7 +281,7 @@ function __formatString() {
if (next == 'e'.charCodeAt(0) || next == 'g'.charCodeAt(0)) {
next = 'f'.charCodeAt(0); // no support for 'e'
}
- if (['d', 'u', 'p', 'f'].indexOf(String.fromCharCode(next)) != -1) {
+ if (['d', 'i', 'u', 'p', 'f'].indexOf(String.fromCharCode(next)) != -1) {
var currArg;
var argText;
currArg = getNextArg(next);