This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Sat, Aug 05, 2006 at 11:30:25AM +0200, François-Xavier Coudert wrote: > >It's not OK. It will probably break with large files on 32-bit > >systems. Instead of casting bytes_left to size_t, nbytes should be > >cast to gfc_offset. > > Hum, I tried to think it through, so let's see where logic failed me... > > On usual 32-bit systems, off_t and size_t are both 32 bits; The "usual" 32-bit system these days is one with large file support, i.e. off_t (or off64_t, depending on the LFS implementation) is 64 bits. -- Janne Blomqvist
Attachment:
pgp00000.pgp
Description: PGP signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |