Author: rfm
Date: Mon Aug  3 10:53:27 2015
New Revision: 38850

URL: http://svn.gna.org/viewcvs/gnustep?rev=38850&view=rev
Log:
add error logs for bad memory config

Modified:
    libs/ec/trunk/EcProcess.m

Modified: libs/ec/trunk/EcProcess.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/ec/trunk/EcProcess.m?rev=38850&r1=38849&r2=38850&view=diff
==============================================================================
--- libs/ec/trunk/EcProcess.m   (original)
+++ libs/ec/trunk/EcProcess.m   Mon Aug  3 10:53:27 2015
@@ -1321,16 +1321,20 @@
 
   memAllowed = (uint64_t)[cmdDefs integerForKey: @"MemoryAllowed"];
 #if     SIZEOF_VOIDP == 4
-  if (memAllowed > 200000)
-    {
+  if (memAllowed >= 4*1024)
+    {
+      [self cmdError: @"MemoryAllowed (%"PRIu64" too large for 32bit 
machine..."
+        @" using 0", memAllowed];
       memAllowed = 0;
     }
 #endif
 
   memMaximum = (uint64_t)[cmdDefs integerForKey: @"MemoryMaximum"];
 #if     SIZEOF_VOIDP == 4
-  if (memMaximum > 200000)
-    {
+  if (memMaximum >= 4*1024)
+    {
+      [self cmdError: @"MemoryMaximum (%"PRIu64" too large for 32bit 
machine..."
+        @" using 0", memAllowed];
       memMaximum = 0;                  // Disabled
     }
 #endif


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to