From d8877d65dc66f2e26646d21b4a7516e1f97aca9e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 17 Sep 2001 05:50:34 +0000 Subject: [PATCH] Update. 2001-09-16 Ulrich Drepper * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correct get nrules value. --- ChangeLog | 5 +++++ string/strcoll.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 274ecc237a..742cd2e9d5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-09-16 Ulrich Drepper + + * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correct get + nrules value. + 2001-09-14 H.J. Lu * sysdeps/mips/fpu/libm-test-ulps: Updated. diff --git a/string/strcoll.c b/string/strcoll.c index ce8ec04435..f22bd101b2 100644 --- a/string/strcoll.c +++ b/string/strcoll.c @@ -60,7 +60,7 @@ STRCOLL (s1, s2, l) { #ifdef USE_IN_EXTENDED_LOCALE_MODEL struct locale_data *current = l->__locales[LC_COLLATE]; - uint_fast32_t nrules = *((const uint32_t *) current->values[_NL_ITEM_INDEX (_NL_COLLATE_NRULES)].string); + uint_fast32_t nrules = current->values[_NL_ITEM_INDEX (_NL_COLLATE_NRULES)].word; #else uint_fast32_t nrules = _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES); #endif -- 2.11.4.GIT