diff options
Diffstat (limited to 'src/bool')
-rw-r--r-- | src/bool/dec/dec.h | 2 | ||||
-rw-r--r-- | src/bool/deco/deco.h | 2 | ||||
-rw-r--r-- | src/bool/kit/kit.h | 2 |
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; } |