mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 08:58:26 +08:00
lib: fix incorrect conversion between integer types
This commit is contained in:
parent
4c488e7517
commit
37c12732f9
|
@ -190,7 +190,7 @@ func (mask *MultiEncoder) Set(in string) error {
|
||||||
if bits, ok := nameToEncoding[part]; ok {
|
if bits, ok := nameToEncoding[part]; ok {
|
||||||
out |= bits
|
out |= bits
|
||||||
} else {
|
} else {
|
||||||
i, err := strconv.ParseInt(part, 0, 64)
|
i, err := strconv.ParseUint(part, 0, 0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("bad encoding %q: possible values are: %s", part, validStrings())
|
return fmt.Errorf("bad encoding %q: possible values are: %s", part, validStrings())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user