2001-09-16  Ulrich Drepper  <drepper@redhat.com>

	* string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correct get
	nrules value.
This commit is contained in:
Ulrich Drepper 2001-09-17 05:50:34 +00:00
parent 69880d1217
commit d8877d65dc
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-09-16 Ulrich Drepper <drepper@redhat.com>
* string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correct get
nrules value.
2001-09-14 H.J. Lu <hjl@gnu.org> 2001-09-14 H.J. Lu <hjl@gnu.org>
* sysdeps/mips/fpu/libm-test-ulps: Updated. * sysdeps/mips/fpu/libm-test-ulps: Updated.

View File

@ -60,7 +60,7 @@ STRCOLL (s1, s2, l)
{ {
#ifdef USE_IN_EXTENDED_LOCALE_MODEL #ifdef USE_IN_EXTENDED_LOCALE_MODEL
struct locale_data *current = l->__locales[LC_COLLATE]; 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 #else
uint_fast32_t nrules = _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES); uint_fast32_t nrules = _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES);
#endif #endif