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

Re: 2Gig filesize limit problem....



On Tue, Nov 20, 2001 at 08:51:58AM +0200, Schlomo Schapiro wrote:
> I actually meant functions like ftell which return the position. If the
> function returns a 64bit integer but the programmer uses a 32bit integer
> this shouldn't work -- unless the compiler silently upgrades all 32bit
> integers ?

It will silently downgrade the value. Which means everything will work
fine as long as you stay in the lower 2GB of the file.

If the compiler is building for a 64bit architecture then int might
very well be 64bit to start with, and long might be too. But a 64bit
int would be terribly slow on a 32bit system.

=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il