aboutsummaryrefslogtreecommitdiff
path: root/type.c
diff options
context:
space:
mode:
Diffstat (limited to 'type.c')
-rw-r--r--type.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/type.c b/type.c
index 26a39b7..6e2319e 100644
--- a/type.c
+++ b/type.c
@@ -155,7 +155,7 @@ itCalculateSizeInfo(ipc_type_t *it)
if (it->itInLine)
{
u_int bytes = (it->itNumber * it->itSize + 7) / 8;
- u_int padding = (4 - bytes%4)%4;
+ u_int padding = (word_size - bytes % word_size) % word_size;
it->itTypeSize = bytes;
it->itPadSize = padding;