[cgma-dev] r5924 - cgm/branches/merge-cubit12.2/util

iulian at mcs.anl.gov iulian at mcs.anl.gov
Mon Dec 17 23:58:06 CST 2012


Author: iulian
Date: 2012-12-17 23:58:06 -0600 (Mon, 17 Dec 2012)
New Revision: 5924

Modified:
   cgm/branches/merge-cubit12.2/util/DLIList.cpp
Log:
wrong correction earlier
how did it compile ?


Modified: cgm/branches/merge-cubit12.2/util/DLIList.cpp
===================================================================
--- cgm/branches/merge-cubit12.2/util/DLIList.cpp	2012-12-18 05:51:44 UTC (rev 5923)
+++ cgm/branches/merge-cubit12.2/util/DLIList.cpp	2012-12-18 05:58:06 UTC (rev 5924)
@@ -160,12 +160,12 @@
       break;
     
     if ((*iter2 == *iter1) &&   // items are the same and ...
-        (insert < listArray ||  // is the first item or ...
+        (insert_last < listArray ||  // is the first item or ...
          *iter1 != *insert_last))    // is not the same as the previous item
       *++insert_last = *iter1;
   }
   
-  itemCount = insert - listArray + 1;
+  itemCount = insert_last - listArray + 1;
   reset();
 }    
 



More information about the cgma-dev mailing list