octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #57644] fseek fread fail for files >4GB 5.1.0


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #57644] fseek fread fail for files >4GB 5.1.0 on Windows10 64-bit x64 proc
Date: Wed, 22 Jan 2020 16:08:18 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0

Follow-up Comment #16, bug #57644 (project octave):

The offset argument for _lseek is of type long (see the link John provided).
Contrary to what one might expect, long has 32 bit on 64 bit Windows systems,
see e.g. [1].
So I think _lseeki64 must be used for files > 4 GiB no matter if Windows is 32
bit or 64 bit.

[1]:
https://docs.microsoft.com/en-us/cpp/build/common-visual-cpp-64-bit-migration-issues?redirectedfrom=MSDN&view=vs-2019

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57644>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]