Solaris compilers did not know about INT_MAX, so I simply replaced using
authorGreg Koenig <koenig@uiuc.edu>
Tue, 8 Feb 2005 16:31:33 +0000 (16:31 +0000)
committerGreg Koenig <koenig@uiuc.edu>
Tue, 8 Feb 2005 16:31:33 +0000 (16:31 +0000)
it with a very large number (999,999,999).

src/ck-ldb/GridCommLB.C

index 9b5eeeb80772aba5da9773867ba4f894a198b675..cf56b18483e799ff65365569df10840feeaf3b25 100644 (file)
@@ -105,8 +105,8 @@ int GridCommLB::Find_Minimum_WAN_PE (int cluster)
 
 
   min_index = -1;
 
 
   min_index = -1;
-  min_wan_objs = INT_MAX;
-  min_lan_objs = INT_MAX;
+  min_wan_objs = 999999999;
+  min_lan_objs = 999999999;
 
   for (i = 0; i < Num_PEs; i++) {
     if (((&PE_Data[i])->available) && ((&PE_Data[i])->cluster == cluster)) {
 
   for (i = 0; i < Num_PEs; i++) {
     if (((&PE_Data[i])->available) && ((&PE_Data[i])->cluster == cluster)) {