summaryrefslogtreecommitdiffstats
path: root/lib/libc/string
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-05-10 21:22:47 +0000
committerjb <jb@FreeBSD.org>1998-05-10 21:22:47 +0000
commitdf8078ac07552e51fc983d5ff9628239b121ad73 (patch)
tree4d6c2da2d45715ff8a5ee6442f7d6ae1f3cc3785 /lib/libc/string
parentde44a06af670d9ae57e986d20050855b959f6597 (diff)
downloadFreeBSD-src-df8078ac07552e51fc983d5ff9628239b121ad73.zip
FreeBSD-src-df8078ac07552e51fc983d5ff9628239b121ad73.tar.gz
Cast a pointer to a long, not an int before masking it.
Diffstat (limited to 'lib/libc/string')
-rw-r--r--lib/libc/string/memset.c2
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 {
OpenPOWER on IntegriCloud