summaryrefslogtreecommitdiff
path: root/lib/libc/string
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>1998-02-04 09:01:44 +0000
committerthorpej <thorpej@NetBSD.org>1998-02-04 09:01:44 +0000
commit59b2a29cc77855fb8855885c16893e4d0726cb09 (patch)
tree5f726cf5c6fdd2154ecb48e2d80278be206d9d24 /lib/libc/string
parentec6c5c10d7a8ae9f79d7123d99a2cfd20526e197 (diff)
Cast pointers to u_long before masking them, not int.
Diffstat (limited to 'lib/libc/string')
-rw-r--r--lib/libc/string/memset.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/string/memset.c b/lib/libc/string/memset.c
index ae65cd0cc8a..412e4b63b9a 100644
--- a/lib/libc/string/memset.c
+++ b/lib/libc/string/memset.c
@@ -1,4 +1,4 @@
-/* $NetBSD: memset.c,v 1.8 1998/02/03 18:49:16 perry Exp $ */
+/* $NetBSD: memset.c,v 1.9 1998/02/04 09:01:44 thorpej Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)memset.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: memset.c,v 1.8 1998/02/03 18:49:16 perry Exp $");
+__RCSID("$NetBSD: memset.c,v 1.9 1998/02/04 09:01:44 thorpej Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -117,7 +117,7 @@ memset(dst0, c0, length)
}
#endif
/* Align destination by filling in bytes. */
- if ((t = (int)dst & wmask) != 0) {
+ if ((t = (u_long)dst & wmask) != 0) {
t = wsize - t;
length -= t;
do {