My working unpac space for OCaml projects in development
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #4516 from Cyan4973/mingw_calloc_order

minor: fix mingw warnings: calloc argument order

authored by

Yann Collet and committed by
GitHub
1267762f 7ef9b303

+3 -3
+3 -3
vendor/git/zstd-c/tests/paramgrill.c
··· 1242 1242 size_t n; 1243 1243 size_t totalSizeToLoad = (size_t)UTIL_getTotalFileSize(fileNamesTable, (U32)nbFiles); 1244 1244 size_t benchedSize = MIN(BMK_findMaxMem(totalSizeToLoad * 3) / 3, totalSizeToLoad); 1245 - size_t* fileSizes = calloc(sizeof(size_t), nbFiles); 1245 + size_t* fileSizes = calloc(nbFiles, sizeof(size_t)); 1246 1246 void* srcBuffer = NULL; 1247 1247 int ret = 0; 1248 1248 ··· 1457 1457 const size_t varyLen, 1458 1458 const U32 memoTableLog) 1459 1459 { 1460 - memoTable_t* const mtAll = (memoTable_t*)calloc(sizeof(memoTable_t),(ZSTD_STRATEGY_MAX + 1)); 1460 + memoTable_t* const mtAll = (memoTable_t*)calloc((ZSTD_STRATEGY_MAX + 1), sizeof(memoTable_t)); 1461 1461 ZSTD_strategy i, stratMin = ZSTD_STRATEGY_MIN, stratMax = ZSTD_STRATEGY_MAX; 1462 1462 1463 1463 if(mtAll == NULL) { ··· 1494 1494 mtl = ((size_t)1 << memoTableLog); 1495 1495 } 1496 1496 1497 - mtAll[i].table = (BYTE*)calloc(sizeof(BYTE), mtl); 1497 + mtAll[i].table = (BYTE*)calloc(mtl, sizeof(BYTE)); 1498 1498 mtAll[i].tableLen = mtl; 1499 1499 1500 1500 if(mtAll[i].table == NULL) {