[syslinux] [PATCH] BTRFS_MAGIC_N is a 64bit value

Ady ady-sf at hotmail.com
Sat Nov 15 04:25:10 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.

Signed-off-by: MartinS <ams at ludd.ltu.se>
---
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