summaryrefslogtreecommitdiffstats
path: root/src/aig/gia/giaIso3.c
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/aig/gia/giaIso3.c
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/aig/gia/giaIso3.c')
-rw-r--r--src/aig/gia/giaIso3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aig/gia/giaIso3.c b/src/aig/gia/giaIso3.c
index 8bea4bbf..bcd73c36 100644
--- a/src/aig/gia/giaIso3.c
+++ b/src/aig/gia/giaIso3.c
@@ -177,7 +177,7 @@ Vec_Wec_t * Gia_Iso4Gia( Gia_Man_t * p )
Vec_WecForEachLevel( vLevs, vLevel, l )
{
Gia_Obj_t * pObj; int i;
- int RandC[2] = { Abc_Random(0), Abc_Random(0) };
+ int RandC[2] = { (int)Abc_Random(0), (int)Abc_Random(0) };
if ( l == 0 )
{
Gia_ManForEachObjVec( vLevel, p, pObj, i )