From 0cae7298fffccbd84e9d06e2d73dce9ed66a9c67 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 4 Dec 2013 22:58:42 -0600 Subject: When building for 32-bit, the compiler can't figure out that a constant too big to fit in a long isn't trying to unless you explicitly postfix the constant with the type of the varable it's being assigned into. --- toys/other/blkid.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'toys/other/blkid.c') diff --git a/toys/other/blkid.c b/toys/other/blkid.c index 1604ac35..1b85d0b8 100644 --- a/toys/other/blkid.c +++ b/toys/other/blkid.c @@ -38,13 +38,13 @@ static const struct fstype fstypes[] = { {"f2fs", 0xF2F52010, 4, 1024, 1132, 16, 1110}, {"jfs", 0x3153464a, 4, 32768, 32920, 16, 32904}, {"nilfs", 0x3434, 2, 1030, 1176, 80, 1192}, - {"reiserfs", 0x724573496552, 6, 8244, 8276, 16, 8292}, - {"reiserfs", 0x724573496552, 6, 65588, 65620, 16, 65536}, + {"reiserfs", 0x724573496552ULL, 6, 8244, 8276, 16, 8292}, + {"reiserfs", 0x724573496552ULL, 6, 65588, 65620, 16, 65536}, {"romfs", 0x2d6d6f72, 4, 0, 0,0,0}, {"squashfs", 0x73717368, 4, 0, 0,0,0}, {"xiafs", 0x012fd16d, 4, 572, 0,0,0}, {"xfs", 0x42534658, 4, 0, 32, 12, 108}, - {"vfat", 0x3233544146, 5, 82, 67+(4<<24), 11, 71}, // fat32 + {"vfat", 0x3233544146ULL, 5, 82, 67+(4<<24), 11, 71}, // fat32 {"vfat", 0x31544146, 4, 54, 39+(4<<24), 11, 43} // fat1 }; -- cgit v1.2.3