Fix qsort argument order in collation example

This commit is contained in:
Allan McRae 2014-04-12 14:26:29 +10:00
parent fe8d072cb7
commit 89e691f2ae
3 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2014-04-12 Allan McRae <allan@archlinux.org>
[BZ #16838]
* manual/string.texi (Collation Functions): Fix qsort argument
order in example.
Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
2014-04-11 Chris Metcalf <cmetcalf@tilera.com>
* math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):

2
NEWS
View File

@ -14,7 +14,7 @@ Version 2.20
16610, 16611, 16613, 16623, 16632, 16634, 16639, 16642, 16648, 16649,
16670, 16674, 16677, 16680, 16683, 16689, 16695, 16701, 16706, 16707,
16712, 16713, 16714, 16731, 16739, 16743, 16758, 16759, 16760, 16770,
16786, 16789, 16799, 16800, 16815.
16786, 16789, 16799, 16800, 16815, 16838.
* Running the testsuite no longer terminates as soon as a test fails.
Instead, a file tests.sum (xtests.sum from "make xcheck") is generated,

View File

@ -1572,8 +1572,8 @@ sort_strings_fast (char **array, int nstrings)
@}
/* @r{Sort @code{temp_array} by comparing transformed strings.} */
qsort (temp_array, sizeof (struct sorter),
nstrings, compare_elements);
qsort (temp_array, nstrings,
sizeof (struct sorter), compare_elements);
/* @r{Put the elements back in the permanent array}
@r{in their sorted order.} */