aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mkfs_ext2.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/mkfs_ext2.c')
-rw-r--r--util-linux/mkfs_ext2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util-linux/mkfs_ext2.c b/util-linux/mkfs_ext2.c
index 8434dd6ad..f524bc239 100644
--- a/util-linux/mkfs_ext2.c
+++ b/util-linux/mkfs_ext2.c
@@ -83,11 +83,11 @@ char BUG_wrong_field_size(void);
#define STORE_LE(field, value) \
do { \
if (sizeof(field) == 4) \
- field = SWAP_LE32(value); \
+ field = SWAP_LE32((uint32_t)(value)); \
else if (sizeof(field) == 2) \
- field = SWAP_LE16(value); \
+ field = SWAP_LE16((uint16_t)(value)); \
else if (sizeof(field) == 1) \
- field = (value); \
+ field = (uint8_t)(value); \
else \
BUG_wrong_field_size(); \
} while (0)