aboutsummaryrefslogtreecommitdiff
path: root/locale
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-01-20 05:22:38 +0000
committerUlrich Drepper <drepper@redhat.com>2000-01-20 05:22:38 +0000
commitee00109cd058fe28fec37f558dc673c9b3adc9db (patch)
treef4484976327a16a18c03949be3d880ab9863d75c /locale
parent0295c6e90d6857f1bbd76215556dc4da414cfc2e (diff)
downloadglibc-ee00109cd058fe28fec37f558dc673c9b3adc9db.zip
glibc-ee00109cd058fe28fec37f558dc673c9b3adc9db.tar.gz
glibc-ee00109cd058fe28fec37f558dc673c9b3adc9db.tar.bz2
Adjust for last change in ld-collate.c of adding alignment padding.
* locale/weight.h: Adjust for last change in ld-collate.c of adding alignment padding.
Diffstat (limited to 'locale')
-rw-r--r--locale/weight.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/locale/weight.h b/locale/weight.h
index cc634c2..6151faa 100644
--- a/locale/weight.h
+++ b/locale/weight.h
@@ -68,6 +68,8 @@ findidx (const unsigned char **cpp)
/* Up to the next entry. */
cp += nhere;
+ if ((1 + nhere) % __alignof__ (int32_t) != 0)
+ cp += __alignof__ (int32_t) - (1 + nhere) % __alignof__ (int32_t);
}
else
{
@@ -86,6 +88,9 @@ findidx (const unsigned char **cpp)
{
/* Cannot be in this range. */
cp += 2 * nhere;
+ if ((1 + 2 * nhere) % __alignof__ (int32_t) != 0)
+ cp += (__alignof__ (int32_t)
+ - (1 + 2 * nhere) % __alignof__ (int32_t));
continue;
}
@@ -98,6 +103,9 @@ findidx (const unsigned char **cpp)
{
/* Cannot be in this range. */
cp += 2 * nhere;
+ if ((1 + 2 * nhere) % __alignof__ (int32_t) != 0)
+ cp += (__alignof__ (int32_t)
+ - (1 + 2 * nhere) % __alignof__ (int32_t));
continue;
}