(pure): Round PURESIZE up.
authorAndreas Schwab <schwab@suse.de>
Sun, 19 Aug 2007 00:17:53 +0000 (00:17 +0000)
committerAndreas Schwab <schwab@suse.de>
Sun, 19 Aug 2007 00:17:53 +0000 (00:17 +0000)
src/ChangeLog
src/alloc.c

index 89267c9..add0663 100644 (file)
@@ -1,3 +1,7 @@
+2007-08-19  Andreas Schwab  <schwab@suse.de>
+
+       * alloc.c (pure): Round PURESIZE up.
+
 2007-08-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
 
        * xterm.c (handle_one_xevent): Remove check that mouse click is in
index 948b878..bcec8ea 100644 (file)
@@ -266,7 +266,7 @@ Lisp_Object Vmemory_full;
    remapping on more recent systems because this is less important
    nowadays than in the days of small memories and timesharing.  */
 
-EMACS_INT pure[PURESIZE / sizeof (EMACS_INT)] = {1,};
+EMACS_INT pure[(PURESIZE + sizeof (EMACS_INT) - 1) / sizeof (EMACS_INT)] = {1,};
 #define PUREBEG (char *) pure
 
 #else /* HAVE_SHM */