1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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:22:38 +02:00 committed by Andrii Melnykov
parent 3fbf723e81
commit c754555b87

View file

@ -11,7 +11,7 @@ import (
"github.com/docker/docker/pkg/archive"
)
type FsMagic uint64
type FsMagic uint32
const (
FsMagicBtrfs = FsMagic(0x9123683E)