diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-12-06 14:13:10 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-12-07 14:23:24 -0800 |
commit | 82a95c63d46429dccb31b0718bc69e008cee5744 (patch) | |
tree | 801d308771df8ffeedfcc889ce81cd93a4a1da24 /src/parseTools.js | |
parent | 343b68b03b4b2f5b569ff46eee430fea06ebead8 (diff) |
properly count pointer sizes in structural types
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 2cdd57f1..dc3f2ef0 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -147,7 +147,7 @@ function getStructureTypeParts(type) { } function getStructuralTypePartBits(part) { - return Math.ceil(getBits(part)/32)*32; // simple 32-bit alignment + return Math.ceil((getBits(part) || 32)/32)*32; // simple 32-bit alignment. || 32 is for pointers } function isIntImplemented(type) { |