mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 00:13:49 +01:00
s3: fix incorrect conversion between integer types
This commit is contained in:
parent
a87d8967fc
commit
1db8b20fbc
@ -5007,11 +5007,11 @@ func (f *Fs) Command(ctx context.Context, name string, arg []string, opt map[str
|
|||||||
RestoreRequest: &types.RestoreRequest{},
|
RestoreRequest: &types.RestoreRequest{},
|
||||||
}
|
}
|
||||||
if lifetime := opt["lifetime"]; lifetime != "" {
|
if lifetime := opt["lifetime"]; lifetime != "" {
|
||||||
ilifetime, err := strconv.ParseInt(lifetime, 10, 64)
|
ilifetime, err := strconv.ParseInt(lifetime, 10, 32)
|
||||||
ilifetime32 := int32(ilifetime)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("bad lifetime: %w", err)
|
return nil, fmt.Errorf("bad lifetime: %w", err)
|
||||||
}
|
}
|
||||||
|
ilifetime32 := int32(ilifetime)
|
||||||
req.RestoreRequest.Days = &ilifetime32
|
req.RestoreRequest.Days = &ilifetime32
|
||||||
}
|
}
|
||||||
if priority := opt["priority"]; priority != "" {
|
if priority := opt["priority"]; priority != "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user