]> git.eshelyaron.com Git - emacs.git/commitdiff
* puresize.h (PURESIZE_RATIO): Shrink this to 8/6 on 32-bit hosts
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 25 Sep 2011 21:03:13 +0000 (14:03 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 25 Sep 2011 21:03:13 +0000 (14:03 -0700)
configured --with-wide-int.

src/ChangeLog
src/puresize.h

index 312951457e48f7b355e8ee0f74849baf1f837b55..cc6c01a4360eff73ad1ee8c9e410fb07a0995a55 100644 (file)
        (conv_lisp_to_sockaddr): Don't assume fixnums fit into int.
        (Faccept_process_output): Use duration_to_sec_usec to do proper
        overflow checking on durations.
+       * puresize.h (PURESIZE_RATIO): Shrink this to 8/6 on 32-bit hosts
+       configured --with-wide-int.
        * scroll.c (calculate_scrolling, calculate_direct_scrolling)
        (line_ins_del): Use int, not EMACS_INT, where int is wide enough.
        * search.c (looking_at_1, string_match_1):
index c26c496a757059f80f662c995fb8cba30d32de64..a1b7007805b18b19652c749c6fdb9fdf40cf425c 100644 (file)
@@ -46,8 +46,12 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 /* Increase BASE_PURESIZE by a ratio depending on the machine's word size.  */
 #ifndef PURESIZE_RATIO
 #if BITS_PER_EMACS_INT > 32
+#if PTRDIFF_MAX >> 31 != 0
 #define PURESIZE_RATIO 10/6    /* Don't surround with `()'. */
 #else
+#define PURESIZE_RATIO 8/6     /* Don't surround with `()'. */
+#endif
+#else
 #define PURESIZE_RATIO 1
 #endif
 #endif