summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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