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/base/cmd/cmdUtils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/base/cmd/cmdUtils.c') diff --git a/src/base/cmd/cmdUtils.c b/src/base/cmd/cmdUtils.c index 3d4d91bb..3409543f 100644 --- a/src/base/cmd/cmdUtils.c +++ b/src/base/cmd/cmdUtils.c @@ -576,7 +576,7 @@ void CmdCommandPrint( Abc_Frame_t * pAbc, int fPrintAll, int fDetails ) nCommands = i; // sort command by group and then by name, alphabetically - qsort( (void *)ppCommands, nCommands, sizeof(Abc_Command *), + qsort( (void *)ppCommands, (size_t)nCommands, sizeof(Abc_Command *), (int (*)(const void *, const void *)) CmdCommandPrintCompare ); assert( CmdCommandPrintCompare( ppCommands, ppCommands + nCommands - 1 ) <= 0 ); @@ -734,7 +734,7 @@ void CmdPrintTable( st__table * tTable, int fAliases ) ppNames[nNames++] = key; // sort array by name - qsort( (void *)ppNames, nNames, sizeof(char *), + qsort( (void *)ppNames, (size_t)nNames, sizeof(char *), (int (*)(const void *, const void *))CmdNamePrintCompare ); // print in this order -- cgit v1.2.3