fichier: fix accessing files > 2GB on 32 bit systems - fixes #3581
This commit is contained in:
parent
23bf6bb4d8
commit
77a520c97c
3 changed files with 5 additions and 5 deletions
|
@ -43,7 +43,7 @@ func (o *Object) ModTime(ctx context.Context) time.Time {
|
|||
|
||||
// Size returns the size of the file
|
||||
func (o *Object) Size() int64 {
|
||||
return int64(o.file.Size)
|
||||
return o.file.Size
|
||||
}
|
||||
|
||||
// Fs returns read only access to the Fs that this object is part of
|
||||
|
@ -74,7 +74,7 @@ func (o *Object) SetModTime(context.Context, time.Time) error {
|
|||
|
||||
// Open opens the file for read. Call Close() on the returned io.ReadCloser
|
||||
func (o *Object) Open(ctx context.Context, options ...fs.OpenOption) (io.ReadCloser, error) {
|
||||
fs.FixRangeOption(options, int64(o.file.Size))
|
||||
fs.FixRangeOption(options, o.file.Size)
|
||||
downloadToken, err := o.fs.getDownloadToken(ctx, o.file.URL)
|
||||
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue