diff options
-rw-r--r-- | src/runtime.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime.js b/src/runtime.js index b184b275..b15f4152 100644 --- a/src/runtime.js +++ b/src/runtime.js @@ -181,7 +181,7 @@ var Runtime = { #if TARGET_LE32 if (type == 'i64' || type == 'double') return 8; #endif - return Math.min(size, Runtime.QUANTUM_SIZE); + return Math.min(size || Runtime.getNativeFieldSize(type), Runtime.QUANTUM_SIZE); }, // Calculate aligned size, just like C structs should be. TODO: Consider |