
I don't know if that is the case with your code, but it would be good to give the compiler this information, since you can fix the problem this way:
inline void Unpack(UInt32 arcType, Byte *dest, size_t destSize,
const Byte *src, size_t srcSize)
{
if (srcSize > destSize)
throw "the input is too large for the destination";
// use 16-bit for now
// Maybe change this value to 32 later when needed
static const UInt32 kBlockSize = (UInt32)1
Related links:
Comments