# HG changeset patch # User Rob Landley # Date 1386219522 21600 # Node ID 5c51c9639a6ffaaa1433881cfbe6a171afc9a336 # Parent 44ca17a8c83e579e6370c3974e23b53628021d19 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. diff -r 44ca17a8c83e -r 5c51c9639a6f toys/other/blkid.c --- a/toys/other/blkid.c Tue Dec 03 15:11:52 2013 -0600 +++ b/toys/other/blkid.c Wed Dec 04 22:58:42 2013 -0600 @@ -38,13 +38,13 @@ {"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 };