[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 2Gig filesize limit problem....
- To: Schlomo Schapiro <schapiro(at-nospam)mobileye.com>
- Subject: Re: 2Gig filesize limit problem....
- From: Adi Stav <stav(at-nospam)actcom.co.il>
- Date: Tue, 20 Nov 2001 18:40:51 +0200
- Cc: Linux-IL Mailing List <linux-il(at-nospam)linux.org.il>
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-Reply-To: <Pine.LNX.4.31.0111200850460.21785-100000@geni.lan>; from schapiro@mobileye.com on Tue, Nov 20, 2001 at 08:51:58AM +0200
- Mail-Followup-To: Schlomo Schapiro <schapiro@mobileye.com>,Linux-IL Mailing List <linux-il@linux.org.il>
- References: <20011119141129.A6366@yotam@makif.omer.k12.il> <Pine.LNX.4.31.0111200850460.21785-100000@geni.lan>
- Sender: Adi Stav <adi(at-nospam)stav.org.il>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
- User-Agent: Mutt/1.2.5i
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