summaryrefslogtreecommitdiffstats
path: root/src/base/abci
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2011-12-15 12:42:42 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2011-12-15 12:42:42 -0800
commitb63b332bac5883c1a60064381a81c7543a636061 (patch)
tree7b58ecb1a270d34824d6941c7381cd79c5690514 /src/base/abci
parent40ddda3edd9819782f46a40c690070279fea627c (diff)
downloadabc-b63b332bac5883c1a60064381a81c7543a636061.tar.gz
abc-b63b332bac5883c1a60064381a81c7543a636061.tar.bz2
abc-b63b332bac5883c1a60064381a81c7543a636061.zip
Trying to make sorting of nodes platform-indendent.
Diffstat (limited to 'src/base/abci')
-rw-r--r--src/base/abci/abcMffc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/base/abci/abcMffc.c b/src/base/abci/abcMffc.c
index 3fb4bdf1..b4510bd0 100644
--- a/src/base/abci/abcMffc.c
+++ b/src/base/abci/abcMffc.c
@@ -1125,6 +1125,11 @@ int Abc_NodeCompareVolumeDecrease( Abc_Obj_t ** pp1, Abc_Obj_t ** pp2 )
return -1;
if ( Diff < 0 )
return 1;
+ Diff = Abc_ObjRegular(*pp1)->Id - Abc_ObjRegular(*pp2)->Id;
+ if ( Diff > 0 )
+ return -1;
+ if ( Diff < 0 )
+ return 1;
return 0;
}