From 01569b8f5f2394c534c3aba7276caf22493fce82 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Tue, 5 Mar 2019 15:57:50 -0800 Subject: Fixing some warnings by adding cast from 'int' to 'size_t' in memset, memcpy, etc. --- src/map/super/superAnd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/super/superAnd.c') diff --git a/src/map/super/superAnd.c b/src/map/super/superAnd.c index 3e55d0f5..9b0ffca1 100644 --- a/src/map/super/superAnd.c +++ b/src/map/super/superAnd.c @@ -475,7 +475,7 @@ clk = Abc_Clock(); // sort the supergates by truth table s_uMaskBit = pLib->uMaskBit; s_uMaskAll = SUPER_MASK(pLib->nMints); - qsort( (void *)pLib->pGates, pLib->nGates, sizeof(Super2_Gate_t *), + qsort( (void *)pLib->pGates, (size_t)pLib->nGates, sizeof(Super2_Gate_t *), (int (*)(const void *, const void *)) Super2_LibCompareGates ); assert( Super2_LibCompareGates( pLib->pGates, pLib->pGates + pLib->nGates - 1 ) < 0 ); ABC_PRT( "Sorting", Abc_Clock() - clk ); -- cgit v1.2.3