mirror of
https://github.com/rclone/rclone
synced 2024-11-01 21:49:35 +01:00
cache: fix mismatched types for #1896
This commit is contained in:
parent
3d2f3d9a7f
commit
7c972d375b
2
cache/handle.go
vendored
2
cache/handle.go
vendored
@ -232,7 +232,7 @@ func (r *Handle) getChunk(chunkStart int64) ([]byte, error) {
|
||||
|
||||
// first chunk will be aligned with the start
|
||||
if offset > 0 {
|
||||
if offset >= len(data) {
|
||||
if offset >= int64(len(data)) {
|
||||
fs.Errorf(r, "unexpected conditions during reading. current position: %v, current chunk position: %v, current chunk size: %v, offset: %v, chunk size: %v, file size: %v",
|
||||
r.offset, chunkStart, len(data), offset, r.cacheFs().chunkSize, r.cachedObject.Size())
|
||||
return nil, io.ErrUnexpectedEOF
|
||||
|
Loading…
Reference in New Issue
Block a user