EPS: fixed a cast and removed a useless comment.

This commit is contained in:
Robin Mills 2011-06-28 05:44:42 +00:00
parent e2c570a1ce
commit b960062f90
2 changed files with 2 additions and 2 deletions

View File

@ -506,7 +506,7 @@ namespace Exiv2 {
uint16_t sizeOfSize = 4 | 0x8000;
us2Data(pWrite, sizeOfSize, bigEndian);
pWrite += 2;
ul2Data(pWrite, dataSize, bigEndian);
ul2Data(pWrite, (uint32_t) dataSize, bigEndian);
pWrite += 4;
}
else {

View File

@ -351,7 +351,7 @@ namespace Exiv2 {
long ul2Data(byte* buf, size_t s, ByteOrder byteOrder)
{
uint32_t l = (uint32_t) s;
return ul2Data(buf,l,byteOrder); // TODO: should this be sizeof(size_t) ?
return ul2Data(buf,l,byteOrder);
}
#endif