int msecs(int from) { return int((GetTickCount() - (dword)from) & 0x7fffffff); } ^^^^^^^^^^^^^^^^
if(msecs(end_time) >= 0) { ^^^^^^^^^^^^^^^^^^^^^^^^^^ error = NFormat("Timeout reading footer block (%d B).", body.GetLength()); break; }
while(msecs() < end_time) {
Report message to a moderator