summaryrefslogtreecommitdiffstats
path: root/src/base/acb
diff options
context:
space:
mode:
authorSean Cross <sean@xobs.io>2023-02-15 22:58:24 +0800
committerSean Cross <sean@xobs.io>2023-02-15 22:58:24 +0800
commit3f9b46591c7134bf546c14e90a29c643b8189c6e (patch)
tree0885b31d6ee3f118a490b2a5864a9a7ac52aa6c9 /src/base/acb
parenta8f0ef2368aa56b3ad20a52298a02e63b2a93e2d (diff)
downloadabc-3f9b46591c7134bf546c14e90a29c643b8189c6e.tar.gz
abc-3f9b46591c7134bf546c14e90a29c643b8189c6e.tar.bz2
abc-3f9b46591c7134bf546c14e90a29c643b8189c6e.zip
casts: add casts for unsigned -> signed int
When compiling on Darwin ARM64 hardware using the Conda clang compiler, compilation fails due to these casts going from `unsigned` to `int`. In these cases, a cast appears to be the correct approach. Add a cast to make the compiler happy. Signed-off-by: Sean Cross <sean@xobs.io>
Diffstat (limited to 'src/base/acb')
-rw-r--r--src/base/acb/acbTest.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/base/acb/acbTest.c b/src/base/acb/acbTest.c
index 6290b88e..c664eada 100644
--- a/src/base/acb/acbTest.c
+++ b/src/base/acb/acbTest.c
@@ -421,8 +421,8 @@ Gia_Man_t * Acb_NtkGiaDeriveMiter( Gia_Man_t * pOne, Gia_Man_t * pTwo, int Type
{
for ( i = 0; i < Gia_ManCoNum(pOne); i += 2 )
{
- int pLitsF[2] = { Gia_ManCo(pOne, i)->Value, Gia_ManCo(pOne, i+1)->Value };
- int pLitsS[2] = { Gia_ManCo(pTwo, i)->Value, Gia_ManCo(pTwo, i+1)->Value };
+ int pLitsF[2] = { (int)Gia_ManCo(pOne, i)->Value, (int)Gia_ManCo(pOne, i+1)->Value };
+ int pLitsS[2] = { (int)Gia_ManCo(pTwo, i)->Value, (int)Gia_ManCo(pTwo, i+1)->Value };
Gia_ManAppendCo( pNew, pLitsF[0] );
Gia_ManAppendCo( pNew, pLitsS[0] );
}
@@ -431,8 +431,8 @@ Gia_Man_t * Acb_NtkGiaDeriveMiter( Gia_Man_t * pOne, Gia_Man_t * pTwo, int Type
{
for ( i = 0; i < Gia_ManCoNum(pOne); i += 2 )
{
- int pLitsF[2] = { Gia_ManCo(pOne, i)->Value, Gia_ManCo(pOne, i+1)->Value };
- int pLitsS[2] = { Gia_ManCo(pTwo, i)->Value, Gia_ManCo(pTwo, i+1)->Value };
+ int pLitsF[2] = { (int)Gia_ManCo(pOne, i)->Value, (int)Gia_ManCo(pOne, i+1)->Value };
+ int pLitsS[2] = { (int)Gia_ManCo(pTwo, i)->Value, (int)Gia_ManCo(pTwo, i+1)->Value };
Gia_ManAppendCo( pNew, pLitsF[1] );
Gia_ManAppendCo( pNew, pLitsS[1] );
}
@@ -441,8 +441,8 @@ Gia_Man_t * Acb_NtkGiaDeriveMiter( Gia_Man_t * pOne, Gia_Man_t * pTwo, int Type
{
for ( i = 0; i < Gia_ManCoNum(pOne); i += 2 )
{
- int pLitsF[2] = { Gia_ManCo(pOne, i)->Value, Gia_ManCo(pOne, i+1)->Value };
- int pLitsS[2] = { Gia_ManCo(pTwo, i)->Value, Gia_ManCo(pTwo, i+1)->Value };
+ int pLitsF[2] = { (int)Gia_ManCo(pOne, i)->Value, (int)Gia_ManCo(pOne, i+1)->Value };
+ int pLitsS[2] = { (int)Gia_ManCo(pTwo, i)->Value, (int)Gia_ManCo(pTwo, i+1)->Value };
Gia_ManAppendCo( pNew, Gia_ManDualCompare( pNew, pLitsF, pLitsS ) );
}
}