fixed many warnings (regarding type conversion) on windows, instead of suppressing them with pragma-directive

This commit is contained in:
Andrey Prygunkov
2008-03-17 17:54:52 +00:00
parent 173622fea1
commit e9ff2e4fca
13 changed files with 39 additions and 40 deletions

View File

@@ -253,9 +253,9 @@ BreakLoop:
if (m_bCrcCheck)
{
m_lCalculatedCRC = crc32m(m_lCalculatedCRC, (unsigned char *)buffer, optr - buffer);
m_lCalculatedCRC = crc32m(m_lCalculatedCRC, (unsigned char *)buffer, (unsigned int)(optr - buffer));
}
return optr - buffer;
return (unsigned int)(optr - buffer);
}
else
{
@@ -458,7 +458,7 @@ unsigned int UDecoder::DecodeBuffer(char* buffer, int len)
}
}
return optr - buffer;
return (unsigned int)(optr - buffer);
}
return 0;