去除64位下警告
This commit is contained in:
parent
fe24883a4b
commit
2af44de589
|
@ -290,7 +290,7 @@ static HGResult PnmLoadImage(FILE* file, HGUInt pnmType, HGPnmLoadInfo* info, HG
|
||||||
{
|
{
|
||||||
if (0 == readBufLen)
|
if (0 == readBufLen)
|
||||||
{
|
{
|
||||||
readBufLen = fread(readBuf, 1, 2048, file);
|
readBufLen = (HGUInt)fread(readBuf, 1, 2048, file);
|
||||||
curReadPos = readBuf;
|
curReadPos = readBuf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -637,8 +637,8 @@ static HGResult PnmSaveImage(HGImage image, const HGChar* fileName, HGUInt pnmTy
|
||||||
}
|
}
|
||||||
|
|
||||||
strcpy(buf + bufLen, pixelStr[idx].c_str());
|
strcpy(buf + bufLen, pixelStr[idx].c_str());
|
||||||
bufLen += pixelStr[idx].size();
|
bufLen += (int)pixelStr[idx].size();
|
||||||
lineSize += pixelStr[idx].size();
|
lineSize += (int)pixelStr[idx].size();
|
||||||
}
|
}
|
||||||
|
|
||||||
buf[bufLen] = '\n';
|
buf[bufLen] = '\n';
|
||||||
|
|
Loading…
Reference in New Issue