aboutsummaryrefslogtreecommitdiff
path: root/sys/netgraph/ng_parse.c
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>2007-06-23 00:02:20 +0000
committerMatt Jacob <mjacob@FreeBSD.org>2007-06-23 00:02:20 +0000
commit2a9a64c6a2c43649b24d6f0c9d82dabfeb01eeb9 (patch)
tree526d2a82ed12efba9eeb51b5b91e919e46eb2784 /sys/netgraph/ng_parse.c
parente67b204a4a792c4c48b609f133e00f2c9c93c579 (diff)
Notes
Diffstat (limited to 'sys/netgraph/ng_parse.c')
-rw-r--r--sys/netgraph/ng_parse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netgraph/ng_parse.c b/sys/netgraph/ng_parse.c
index 2e9a36548683..2c46d5c7881d 100644
--- a/sys/netgraph/ng_parse.c
+++ b/sys/netgraph/ng_parse.c
@@ -84,9 +84,9 @@ struct int64_temp {
};
#define INT8_ALIGNMENT 1
-#define INT16_ALIGNMENT ((int)&((struct int16_temp *)0)->y)
-#define INT32_ALIGNMENT ((int)&((struct int32_temp *)0)->y)
-#define INT64_ALIGNMENT ((int)&((struct int64_temp *)0)->y)
+#define INT16_ALIGNMENT ((size_t)&((struct int16_temp *)0)->y)
+#define INT32_ALIGNMENT ((size_t)&((struct int32_temp *)0)->y)
+#define INT64_ALIGNMENT ((size_t)&((struct int64_temp *)0)->y)
/* Output format for integral types */
#define INT_UNSIGNED 0