diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/s2wasm.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h index 46cf972c8..8b34d6b03 100644 --- a/src/s2wasm.h +++ b/src/s2wasm.h @@ -343,7 +343,9 @@ private: } void prepare() { - staticAddresses["__stack_pointer"] = 0; // XXX HACK for now + assert(nextStatic == globalBase); // we are the first allocation + staticAddresses["__stack_pointer"] = nextStatic; + nextStatic += 4; } void process() { |