]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Adjust for last change in ld-collate.c of adding alignment padding.
authorUlrich Drepper <drepper@redhat.com>
Thu, 20 Jan 2000 05:22:38 +0000 (05:22 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 20 Jan 2000 05:22:38 +0000 (05:22 +0000)
* locale/weight.h: Adjust for last change in ld-collate.c of adding
alignment padding.

ChangeLog
locale/weight.h

index b5e96efc2d0a3486f85aa77af2e273eabe66de34..96643d61ab01eb84a58f831c2b719abaa456ed61 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,8 @@
        characters.
        (collate_output): Correct various problems with alignment in the
        output file.
+       * locale/weight.h: Adjust for last change in ld-collate.c of adding
+       alignment padding.
 
        * stdlib/strfmon.c: Don't report an error if final NUL is at the
        end of the buffer.  Set errno correctly if floating-point number
index cc634c253b76e7049d05260957bfbc5949a1b56b..6151faacea8a701d32655c403665bac484d670c5 100644 (file)
@@ -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;
                }