diff options
author | Rob Landley <rob@landley.net> | 2013-12-04 22:58:42 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2013-12-04 22:58:42 -0600 |
commit | 0cae7298fffccbd84e9d06e2d73dce9ed66a9c67 (patch) | |
tree | c5136e664480dc0f9b622e0c4dcdb14bd803788f /toys/other | |
parent | b0d4872f532bead29307654bbc511d6083abf2af (diff) | |
download | toybox-0cae7298fffccbd84e9d06e2d73dce9ed66a9c67.tar.gz |
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.
Diffstat (limited to 'toys/other')
-rw-r--r-- | toys/other/blkid.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 }; |