diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-04-28 13:45:14 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-04-29 13:02:33 -0700 |
commit | 200c188d210cb8a3a2c7e87b3dbab7744a14a49a (patch) | |
tree | 0ea52ec4b3dfe12b1904e50278206810be7a147c /src | |
parent | 5ec44114166624baec6849447576f030fa72f391 (diff) |
align struct fields to 64-bit in le32
Diffstat (limited to 'src')
-rw-r--r-- | src/runtime.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime.js b/src/runtime.js index db334669..9daab820 100644 --- a/src/runtime.js +++ b/src/runtime.js @@ -180,6 +180,7 @@ var Runtime = { // we align i64s and doubles on 64-bit boundaries, unlike x86 #if TARGET_LE32 if (type == 'i64' || type == 'double' || vararg) return 8; + if (!type) return Math.min(size, 8); // align structures internally to 64 bits #endif return Math.min(size || (type ? Runtime.getNativeFieldSize(type) : 0), Runtime.QUANTUM_SIZE); }, |