summaryrefslogtreecommitdiffstats
path: root/src/bool
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2020-04-17 10:14:44 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2020-04-17 10:14:44 -0700
commit203a7d6ad8e14ea017fc5e646a15317149aebdf6 (patch)
tree6bb8937d6fe681868c3ac4d5f8353b415b42c738 /src/bool
parent92abe5cb8743dfc48e6261f314cc37a1cb043aee (diff)
downloadabc-203a7d6ad8e14ea017fc5e646a15317149aebdf6.tar.gz
abc-203a7d6ad8e14ea017fc5e646a15317149aebdf6.tar.bz2
abc-203a7d6ad8e14ea017fc5e646a15317149aebdf6.zip
Fixing broken build and compiler warnings.
Diffstat (limited to 'src/bool')
-rw-r--r--src/bool/dec/dec.h2
-rw-r--r--src/bool/deco/deco.h2
-rw-r--r--src/bool/kit/kit.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/bool/dec/dec.h b/src/bool/dec/dec.h
index e02b96c4..50c287f4 100644
--- a/src/bool/dec/dec.h
+++ b/src/bool/dec/dec.h
@@ -133,7 +133,7 @@ extern unsigned Dec_GraphDeriveTruth( Dec_Graph_t * pGraph );
***********************************************************************/
static inline Dec_Edge_t Dec_EdgeCreate( int Node, int fCompl )
{
- Dec_Edge_t eEdge = { fCompl, Node };
+ Dec_Edge_t eEdge = { (unsigned)fCompl, (unsigned)Node };
return eEdge;
}
diff --git a/src/bool/deco/deco.h b/src/bool/deco/deco.h
index 33dbed87..2792e8d3 100644
--- a/src/bool/deco/deco.h
+++ b/src/bool/deco/deco.h
@@ -122,7 +122,7 @@ struct Dec_Man_t_
***********************************************************************/
static inline Dec_Edge_t Dec_EdgeCreate( int Node, int fCompl )
{
- Dec_Edge_t eEdge = { fCompl, Node };
+ Dec_Edge_t eEdge = { (unsigned)fCompl, (unsigned)Node };
return eEdge;
}
diff --git a/src/bool/kit/kit.h b/src/bool/kit/kit.h
index 9153a280..47f06403 100644
--- a/src/bool/kit/kit.h
+++ b/src/bool/kit/kit.h
@@ -194,7 +194,7 @@ static inline void Kit_SopShrink( Kit_Sop_t * cSop, int nCubesNew )
static inline void Kit_SopPushCube( Kit_Sop_t * cSop, unsigned uCube ) { cSop->pCubes[cSop->nCubes++] = uCube; }
static inline void Kit_SopWriteCube( Kit_Sop_t * cSop, unsigned uCube, int i ) { cSop->pCubes[i] = uCube; }
-static inline Kit_Edge_t Kit_EdgeCreate( int Node, int fCompl ) { Kit_Edge_t eEdge = { fCompl, Node }; return eEdge; }
+static inline Kit_Edge_t Kit_EdgeCreate( int Node, int fCompl ) { Kit_Edge_t eEdge = { (unsigned)fCompl, (unsigned)Node }; return eEdge; }
static inline unsigned Kit_EdgeToInt( Kit_Edge_t eEdge ) { return (eEdge.Node << 1) | eEdge.fCompl; }
static inline Kit_Edge_t Kit_IntToEdge( unsigned Edge ) { return Kit_EdgeCreate( Edge >> 1, Edge & 1 ); }
//static inline unsigned Kit_EdgeToInt_( Kit_Edge_t eEdge ) { return *(unsigned *)&eEdge; }