Fix signed/unsigned warnings in {script,serialize}.h (fixes #1541)
This commit is contained in:
@@ -452,7 +452,7 @@ public:
|
||||
memcpy(&nSize, &pc[0], 4);
|
||||
pc += 4;
|
||||
}
|
||||
if (end() - pc < nSize)
|
||||
if (end() - pc < 0 || (unsigned int)(end() - pc) < nSize)
|
||||
return false;
|
||||
if (pvchRet)
|
||||
pvchRet->assign(pc, pc + nSize);
|
||||
|
||||
Reference in New Issue
Block a user