Cast a pointer to a long, not an int before masking it.

This commit is contained in:
John Birrell 1998-05-10 21:22:47 +00:00
parent cc4473c104
commit adaa81ba92

View File

@ -105,7 +105,7 @@ memset(dst0, c0, length)
}
#endif
/* Align destination by filling in bytes. */
if ((t = (int)dst & wmask) != 0) {
if ((t = (long)dst & wmask) != 0) {
t = wsize - t;
length -= t;
do {