Subject: Re: bug#2790: emacs 22.1.1 cannot open 5GB file on 64GB 64-bit GNU/Linux box

From: Eli Zaretskii <[email-masked]>
Date: Sat, 28 Mar 2009 15:03:43 +0300

> From: Andreas Schwab <[email-masked]>
> Cc: [email-masked],  Stefan Monnier <[email-masked]>,  [email-masked]
> Date: Sat, 28 Mar 2009 12:12:04 +0100
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> > Personally, I would change INT_MAX/4 to LONG_MAX/4,
> 
> This is wrong, see also make_gap_larger.  The range for buffer positions
> is still limited by the range of int.

Then that's another bug waiting to happen, isn't it?  Buffer positions
should be limited by EMACS_INT, not by int, right?