Warnings fix.

This commit is contained in:
Robert Osfield
2002-04-16 08:01:18 +00:00
parent 1423206e6b
commit 0c6f09f4c5

View File

@@ -423,10 +423,7 @@ static void wipeWithPattern(sAllocUnit *allocUnit, unsigned long pattern,
char *cptr = (char *) lptr;
for (i = 0; i < (length & 0x3); i++, cptr++, shiftCount += 8)
{
char res1 = (pattern & (0xff << shiftCount)) >> shiftCount;
char res2 = static_cast<char>((pattern >> shiftCount) & 0xff);
assert(res1==res2);
*cptr = (pattern & (0xff << shiftCount)) >> shiftCount;
*cptr = static_cast<char>((pattern >> shiftCount) & 0xff);
}
}