diff options
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) { |