aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic/memset.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/memset.c')
-rw-r--r--sysdeps/generic/memset.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/generic/memset.c b/sysdeps/generic/memset.c
index 1369698652..239dc21e3c 100644
--- a/sysdeps/generic/memset.c
+++ b/sysdeps/generic/memset.c
@@ -38,7 +38,8 @@ memset (dstpp, c, len)
cccc |= cccc << 8;
cccc |= cccc << 16;
if (OPSIZ > 4)
- cccc |= cccc << 32;
+ /* Do the shift in two steps to avoid warning if long has 32 bits. */
+ cccc |= (cccc << 16) << 16;
/* There are at least some bytes to set.
No need to test for LEN == 0 in this alignment loop. */