diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2019-03-05 15:57:50 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2019-03-05 15:57:50 -0800 |
commit | 01569b8f5f2394c534c3aba7276caf22493fce82 (patch) | |
tree | 40d52cf2d4d76c1e1e5bf6443c34836627f4e5f9 /src/opt/rwr | |
parent | b632c8496cc48bb8be0851ea2c183f94c201f791 (diff) | |
download | abc-01569b8f5f2394c534c3aba7276caf22493fce82.tar.gz abc-01569b8f5f2394c534c3aba7276caf22493fce82.tar.bz2 abc-01569b8f5f2394c534c3aba7276caf22493fce82.zip |
Fixing some warnings by adding cast from 'int' to 'size_t' in memset, memcpy, etc.
Diffstat (limited to 'src/opt/rwr')
-rw-r--r-- | src/opt/rwr/rwrEva.c | 2 | ||||
-rw-r--r-- | src/opt/rwr/rwrTemp.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/opt/rwr/rwrEva.c b/src/opt/rwr/rwrEva.c index 463e9bd7..1856f7b7 100644 --- a/src/opt/rwr/rwrEva.c +++ b/src/opt/rwr/rwrEva.c @@ -566,7 +566,7 @@ void Rwr_ScoresReport( Rwr_Man_t * p ) Gains[i] += pNode->nGain; } // sort the gains - qsort( Perm, 222, sizeof(int), (int (*)(const void *, const void *))Rwr_ScoresCompare ); + qsort( Perm, (size_t)222, sizeof(int), (int (*)(const void *, const void *))Rwr_ScoresCompare ); // print classes for ( i = 0; i < p->vClasses->nSize; i++ ) diff --git a/src/opt/rwr/rwrTemp.c b/src/opt/rwr/rwrTemp.c index b32709e5..4eb652d7 100644 --- a/src/opt/rwr/rwrTemp.c +++ b/src/opt/rwr/rwrTemp.c @@ -89,7 +89,7 @@ void Rwr_Temp() for ( i = 0; i < 13719; i++ ) pPerm[i] = i; - qsort( (void *)pPerm, 13719, sizeof(int), + qsort( (void *)pPerm, (size_t)13719, sizeof(int), (int (*)(const void *, const void *)) Rwr_TempCompare ); |