changeset 1137:5c51c9639a6f draft

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.
author Rob Landley <rob@landley.net>
date Wed, 04 Dec 2013 22:58:42 -0600
parents 44ca17a8c83e
children ecc409de9976
files toys/other/blkid.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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
 };