print %ld to force int type

This commit is contained in:
tickduan 2021-07-08 15:40:52 +08:00
parent 682f6e5c35
commit bf7e2bff4f
2 changed files with 2 additions and 2 deletions

View File

@ -304,7 +304,7 @@ int SZ_compress_args_double(double *oriData, size_t r1, unsigned char* newByteDa
// check at least elements count
if(dataLength <= MIN_NUM_OF_ELEMENTS)
{
printf("error, double input elements count=%ld less than %d, so need not do compress.\n", dataLength, MIN_NUM_OF_ELEMENTS);
printf("error, double input elements count=%d less than %d, so need not do compress.\n", (int)dataLength, MIN_NUM_OF_ELEMENTS);
return SZ_LITTER_ELEMENT;
}

View File

@ -306,7 +306,7 @@ int SZ_compress_args_float(float *oriData, size_t r1, unsigned char* newByteData
// check at least elements count
if(dataLength <= MIN_NUM_OF_ELEMENTS)
{
printf("error, input elements count=%ld less than %d, so need not do compress.\n", dataLength, MIN_NUM_OF_ELEMENTS);
printf("error, input elements count=%d less than %d, so need not do compress.\n", (int)dataLength, MIN_NUM_OF_ELEMENTS);
return SZ_LITTER_ELEMENT;
}