zfs: PropertySource: set type to uint32 so that enumer-generated code is platform-independent
make zrepl-bin test-platform-bin vet lint GOOS=freebsd GOARCH=386 make[2]: Entering directory '/src' GO111MODULE=on go build -mod=readonly -ldflags "-X github.com/zrepl/zrepl/version.zreplVersion=v0.3.1-20-g07f2bff" -o "artifacts/zrepl-freebsd-386" zfs/propertysource_enumer.go:41:9: constant 18446744073709551615 overflows PropertySource zfs/propertysource_enumer.go:48:66: constant 18446744073709551615 overflows PropertySource zfs/propertysource_enumer.go:57:23: constant 18446744073709551615 overflows PropertySource fixes #429
This commit is contained in:
+1
-1
@@ -1446,7 +1446,7 @@ func tryDatasetDoesNotExist(expectPath string, stderr []byte) *DatasetDoesNotExi
|
||||
}
|
||||
|
||||
//go:generate enumer -type=PropertySource -trimprefix=Source
|
||||
type PropertySource uint
|
||||
type PropertySource uint32
|
||||
|
||||
const (
|
||||
SourceLocal PropertySource = 1 << iota
|
||||
|
||||
Reference in New Issue
Block a user