diff options
author | jb <jb@FreeBSD.org> | 1998-05-10 21:22:47 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-05-10 21:22:47 +0000 |
commit | df8078ac07552e51fc983d5ff9628239b121ad73 (patch) | |
tree | 4d6c2da2d45715ff8a5ee6442f7d6ae1f3cc3785 /lib | |
parent | de44a06af670d9ae57e986d20050855b959f6597 (diff) | |
download | FreeBSD-src-df8078ac07552e51fc983d5ff9628239b121ad73.zip FreeBSD-src-df8078ac07552e51fc983d5ff9628239b121ad73.tar.gz |
Cast a pointer to a long, not an int before masking it.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/string/memset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/string/memset.c b/lib/libc/string/memset.c index 99c72dc..55cca11 100644 --- a/lib/libc/string/memset.c +++ b/lib/libc/string/memset.c @@ -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 { |