while compiling an app that links to dcmtk 3.5.4 (with warning level set to 4), i get the casting warnings.
For the dcmtk source:
Code: Select all
int numberOfRepeatingTagEntries() const { return repDict.size(); }
Code: Select all
inline Uint32 getCount() const
{
return List.size();
}
i get:
warning C4267: 'return' : conversion from 'size_t' to 'int'/'Uint32', possible loss of data.
While not a major issue, and i can technically disable the warnings at the calling site - why not cleanup dcmtk, and return size_t at the source?
thanks,
Ofek