去除64位下警告

This commit is contained in:
luoliangyi 2022-11-06 16:25:55 +08:00
parent fe24883a4b
commit 2af44de589
1 changed files with 3 additions and 3 deletions

View File

@ -290,7 +290,7 @@ static HGResult PnmLoadImage(FILE* file, HGUInt pnmType, HGPnmLoadInfo* info, HG
{
if (0 == readBufLen)
{
readBufLen = fread(readBuf, 1, 2048, file);
readBufLen = (HGUInt)fread(readBuf, 1, 2048, file);
curReadPos = readBuf;
}
@ -637,8 +637,8 @@ static HGResult PnmSaveImage(HGImage image, const HGChar* fileName, HGUInt pnmTy
}
strcpy(buf + bufLen, pixelStr[idx].c_str());
bufLen += pixelStr[idx].size();
lineSize += pixelStr[idx].size();
bufLen += (int)pixelStr[idx].size();
lineSize += (int)pixelStr[idx].size();
}
buf[bufLen] = '\n';