diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-04-22 10:34:35 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-04-29 13:01:59 -0700 |
commit | b020ec673028c47fa16e32f46a7c3e5c1dbe3905 (patch) | |
tree | 0f379ff345dbf0b79aebf08a4708883543321d3d /src | |
parent | e997f18e445e5d1b323ef6ef830e8b38a96c42b2 (diff) |
allow size to be null in getAlignSize, for native types
Diffstat (limited to 'src')
-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 |