diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2018-02-19 09:07:44 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2018-02-19 09:07:44 -0800 |
commit | 76b00a2d3e14efe21a086ec401db4ab08a6f287a (patch) | |
tree | cb95ceedd233b882e246a5298994b769d7d21d27 /src/base/cba | |
parent | 1d1b11cb65aa3c7811fe81e45c6870018bf25a95 (diff) | |
download | abc-76b00a2d3e14efe21a086ec401db4ab08a6f287a.tar.gz abc-76b00a2d3e14efe21a086ec401db4ab08a6f287a.tar.bz2 abc-76b00a2d3e14efe21a086ec401db4ab08a6f287a.zip |
Compilation problem with pow().
Diffstat (limited to 'src/base/cba')
-rw-r--r-- | src/base/cba/cbaNtk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/cba/cbaNtk.c b/src/base/cba/cbaNtk.c index 059ef868..5be0aa6c 100644 --- a/src/base/cba/cbaNtk.c +++ b/src/base/cba/cbaNtk.c @@ -196,7 +196,7 @@ void Cba_NtkPrintDistrib( Cba_Ntk_t * p, int fVerbose ) else if ( Type == CBA_BOX_MOD ) Vec_IntAddToEntry( vAnds, CBA_BOX_MOD, 13 * Cba_ObjRangeSize(p, Cba_ObjFinFon(p, i, 0)) * Cba_ObjRangeSize(p, Cba_ObjFinFon(p, i, 0)) - 7 * Cba_ObjRangeSize(p, Cba_ObjFinFon(p, i, 0)) - 2 ); else if ( Type == CBA_BOX_POW ) - Vec_IntAddToEntry( vAnds, CBA_BOX_POW, 10 * (int)pow(Cba_ObjRangeSize(p, Cba_ObjFinFon(p, i, 0)),Cba_ObjRangeSize(p, Cba_ObjFinFon(p, i, 0))) ); + Vec_IntAddToEntry( vAnds, CBA_BOX_POW, 10 * (int)pow((double)Cba_ObjRangeSize(p, Cba_ObjFinFon(p, i, 0)),(double)Cba_ObjRangeSize(p, Cba_ObjFinFon(p, i, 0))) ); else if ( Type == CBA_BOX_MIN ) Vec_IntAddToEntry( vAnds, CBA_BOX_MIN, 4 * Cba_ObjRangeSize(p, Cba_ObjFinFon(p, i, 0)) ); else if ( Type == CBA_BOX_SQRT ) |