changeset 53579:862b91168878

(do_check_ram_size): Don't hardcode the lisp address space size.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 14 Jan 2004 14:24:38 +0000
parents 5892f55e034e
children 9c0323a1fb76
files src/macterm.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/macterm.c	Wed Jan 14 14:22:17 2004 +0000
+++ b/src/macterm.c	Wed Jan 14 14:24:38 2004 +0000
@@ -6643,8 +6643,8 @@
 
   if (Gestalt (gestaltPhysicalRAMSize, &physical_ram_size) != noErr
       || Gestalt (gestaltLogicalRAMSize, &logical_ram_size) != noErr
-      || physical_ram_size > 256 * 1024 * 1024
-      || logical_ram_size > 256 * 1024 * 1024)
+      || physical_ram_size > (1 << VALBITS)
+      || logical_ram_size > (1 << VALBITS))
     {
       StopAlert (RAM_TOO_LARGE_ALERT_ID, NULL);
       exit (1);