aboutsummaryrefslogtreecommitdiff
path: root/string
diff options
context:
space:
mode:
Diffstat (limited to 'string')
-rw-r--r--string/strcoll.c8
-rw-r--r--string/strxfrm.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/string/strcoll.c b/string/strcoll.c
index 14b2039..49725e1 100644
--- a/string/strcoll.c
+++ b/string/strcoll.c
@@ -127,10 +127,10 @@ STRCOLL (s1, s2, l)
#endif
use_malloc = 0;
- assert (((uintptr_t) table) % sizeof (table[0]) == 0);
- assert (((uintptr_t) weights) % sizeof (weights[0]) == 0);
- assert (((uintptr_t) extra) % sizeof (extra[0]) == 0);
- assert (((uintptr_t) indirect) % sizeof (indirect[0]) == 0);
+ assert (((uintptr_t) table) % __alignof__ (table[0]) == 0);
+ assert (((uintptr_t) weights) % __alignof__ (weights[0]) == 0);
+ assert (((uintptr_t) extra) % __alignof__ (extra[0]) == 0);
+ assert (((uintptr_t) indirect) % __alignof__ (indirect[0]) == 0);
/* We need this a few times. */
s1len = STRLEN (s1);
diff --git a/string/strxfrm.c b/string/strxfrm.c
index b9d3209..df44586 100644
--- a/string/strxfrm.c
+++ b/string/strxfrm.c
@@ -151,10 +151,10 @@ STRXFRM (STRING_TYPE *dest, const STRING_TYPE *src, size_t n, __locale_t l)
#endif
use_malloc = 0;
- assert (((uintptr_t) table) % sizeof (table[0]) == 0);
- assert (((uintptr_t) weights) % sizeof (weights[0]) == 0);
- assert (((uintptr_t) extra) % sizeof (extra[0]) == 0);
- assert (((uintptr_t) indirect) % sizeof (indirect[0]) == 0);
+ assert (((uintptr_t) table) % __alignof__ (table[0]) == 0);
+ assert (((uintptr_t) weights) % __alignof__ (weights[0]) == 0);
+ assert (((uintptr_t) extra) % __alignof__ (extra[0]) == 0);
+ assert (((uintptr_t) indirect) % __alignof__ (indirect[0]) == 0);
/* Handle an empty string as a special case. */
if (srclen == 0)