1
0
mirror of https://github.com/facebook/zstd.git synced 2025-08-05 19:15:58 +03:00

fixed : conversion warning

This commit is contained in:
Yann Collet
2015-12-17 02:48:26 +01:00
parent 4f13703b2f
commit 24c98f2b4b

View File

@@ -324,7 +324,8 @@ static cRess_t FIO_createCResources(const char* dictFileName)
if (dictFileName) if (dictFileName)
{ {
FILE* dictHandle; FILE* dictHandle;
size_t readSize, dictSize; size_t readSize;
U64 dictSize;
DISPLAYLEVEL(4,"Using %s as dictionary \n", dictFileName); DISPLAYLEVEL(4,"Using %s as dictionary \n", dictFileName);
dictHandle = fopen(dictFileName, "rb"); dictHandle = fopen(dictFileName, "rb");
if (dictHandle==0) EXM_THROW(31, "Error opening dictionary file %s", dictFileName); if (dictHandle==0) EXM_THROW(31, "Error opening dictionary file %s", dictFileName);
@@ -343,7 +344,7 @@ static cRess_t FIO_createCResources(const char* dictFileName)
readSize = fread(ress.dictBuffer, 1, (size_t)dictSize, dictHandle); readSize = fread(ress.dictBuffer, 1, (size_t)dictSize, dictHandle);
if (readSize!=dictSize) EXM_THROW(35, "Error reading dictionary file %s", dictFileName); if (readSize!=dictSize) EXM_THROW(35, "Error reading dictionary file %s", dictFileName);
fclose(dictHandle); fclose(dictHandle);
ress.dictBufferSize = dictSize; ress.dictBufferSize = (size_t)dictSize;
} }
return ress; return ress;