From 2fdebbcabc5416c8b4e895c4a439748050ff1259 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Sun, 3 Apr 2016 02:27:23 +0200 Subject: Use word_size instead of 4. * server.c: Use word_size and update comments. * type.c: Use word_size to compute padding. * user.c: Use word_size and update comments. --- type.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'type.c') 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; -- cgit v1.2.3