From 17b96202deafd75adb2afcb16e8469a52e07e078 Mon Sep 17 00:00:00 2001 From: Sertonix Date: Wed, 30 Sep 2026 14:43:16 +0200 Subject: [PATCH] fix: Compiling superblock.go for 32-bit systems The value is uint32 but go attempted to format it as int32 for 32-bit systems. Signed-off-by: Sertonix --- pkg/erofs/superblock.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/erofs/superblock.go b/pkg/erofs/superblock.go index 0736e3f..e782ae9 100644 --- a/pkg/erofs/superblock.go +++ b/pkg/erofs/superblock.go @@ -142,7 +142,7 @@ func parseSuperblock(b []byte) (*superblock, error) { magic := binary.LittleEndian.Uint32(b[0:4]) if magic != superblockMagic { - return nil, errors.Errorf("superblock had magic of %d instead of expected %d", magic, superblockMagic) + return nil, errors.Errorf("superblock had magic of %d instead of expected %d", magic, uint32(superblockMagic)) } sb := &superblock{