|
From: | Andreas Schwab |
Subject: | bug#2790: emacs 22.1.1 cannot open 5GB file on 64GB 64-bit GNU/Linux box |
Date: | Mon, 30 Mar 2009 10:08:10 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes: > I do not know what you're referring to. If you're referring to the fact > that (((EMACS_INT)st.st_size)*4) may overflow, then I'm not sure what > problem you're envisaging: The compiler can (and does) optimize on the fact that overflow does not occur, thus the operation x*4/4 becomes a no-op. Never ever do overflow checking after the fact. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
[Prev in Thread] | Current Thread | [Next in Thread] |