Cast a pointer to a long, not an int before masking it.
This commit is contained in:
parent
cc4473c104
commit
adaa81ba92
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user