Hopefully fix VS compiler warning

dev
Sen Huang 2019-10-08 00:15:28 -04:00
parent 6b81bfb257
commit f9b1da6f62
1 changed files with 2 additions and 2 deletions

View File

@ -658,7 +658,7 @@ int FIO_checkFilenameCollisions(const char** filenameTable, unsigned nbFiles) {
}
}
qsort(filenameTableSorted, nbFiles, sizeof(char*), UTIL_compareStr);
qsort((const char**)filenameTableSorted, nbFiles, sizeof(char*), UTIL_compareStr);
prevElem = filenameTableSorted[0];
for (u = 1; u < nbFiles; ++u) {
if (strcmp(prevElem, filenameTableSorted[u]) == 0) {
@ -667,7 +667,7 @@ int FIO_checkFilenameCollisions(const char** filenameTable, unsigned nbFiles) {
prevElem = filenameTableSorted[u];
}
free(filenameTableSorted);
free((const char**)filenameTableSorted);
return 0;
}