(collate_end_weight): Correctly fill up weight array.
authordrepper <drepper>
Sun, 25 Jan 1998 16:23:52 +0000 (16:23 +0000)
committerdrepper <drepper>
Sun, 25 Jan 1998 16:23:52 +0000 (16:23 +0000)
locale/programs/ld-collate.c

index f01b1f6..9c591f6 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
 
@@ -1889,7 +1889,7 @@ collate_end_weight (struct linereader *lr, struct localedef_t *locale)
          || collate->kind == undefined);
 
   /* Fill in the missing weights.  */
-  while (collate->weight_idx++ < collate->nrules)
+  while (++collate->weight_idx < collate->nrules)
     {
       collate->weight[collate->nweight++] = pelem->this_weight;
       ++collate->weight_cnt[collate->weight_idx];