[syslinux] core/fs/btrfs/btrfs.h correction

ams at luminous.ludd.ltu.se ams at luminous.ludd.ltu.se
Sat Nov 15 01:42:36 PST 2014


gcc complains about the size of the constant of BTRFS_MAGIC_N. It is a
64bit value, so it needs the ULL suffix.

diff --git a/core/fs/btrfs/btrfs.h b/core/fs/btrfs/btrfs.h
index 1568e4d..8f519a9 100644
--- a/core/fs/btrfs/btrfs.h
+++ b/core/fs/btrfs/btrfs.h
@@ -32,7 +32,7 @@ typedef u64 __le64;
 
 #define BTRFS_MAGIC "_BHRfS_M"
 #define BTRFS_MAGIC_L 8
-#define BTRFS_MAGIC_N 0x4d5f53665248425f
+#define BTRFS_MAGIC_N 0x4d5f53665248425fULL
 
 #define BTRFS_SUPER_FLAG_METADUMP	(1ULL << 33)
 


-- 
MartinS


More information about the Syslinux mailing list