diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2011-12-15 12:27:35 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2011-12-15 12:27:35 -0800 |
commit | 40ddda3edd9819782f46a40c690070279fea627c (patch) | |
tree | c5506d33dbe9e2386630625dcf916b9564a8966b /src | |
parent | bc2f199bd3e4d49e8ce47aaf41ccdb45e70c49ed (diff) | |
download | abc-40ddda3edd9819782f46a40c690070279fea627c.tar.gz abc-40ddda3edd9819782f46a40c690070279fea627c.tar.bz2 abc-40ddda3edd9819782f46a40c690070279fea627c.zip |
Trying to make sorting of nodes platform-indendent.
Diffstat (limited to 'src')
-rw-r--r-- | src/base/abc/abcUtil.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/base/abc/abcUtil.c b/src/base/abc/abcUtil.c index 1b5d03b1..108514b5 100644 --- a/src/base/abc/abcUtil.c +++ b/src/base/abc/abcUtil.c @@ -1422,6 +1422,11 @@ int Abc_NodeCompareLevelsDecrease( 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; } |