FsMagic should avoid sign extension on i686

`uint64(buf.Type)` on i686 is ffffffff9123683e on i686 due to sign extension, so it cannot be compared with `FsMagic(0x9123683E)`

Signed-off-by: Andrii Melnykov <andy.melnikov@gmail.com>
This commit is contained in:
nponeccop
2015-01-09 02:44:04 +02:00
committed by Andrii Melnykov
parent 3fbf723e81
commit c754555b87
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"github.com/docker/docker/pkg/archive"
)
type FsMagic uint64
type FsMagic uint32
const (
FsMagicBtrfs = FsMagic(0x9123683E)