summaryrefslogtreecommitdiff
path: root/manual/search.texi
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-01-08 08:54:53 +0000
committerUlrich Drepper <drepper@redhat.com>1999-01-08 08:54:53 +0000
commit68ef28edc2f1bafa417da1ac8d35a3bf2a1b565b (patch)
tree6cce0584a87bba535c06222bd1bbb7ad71154b2a /manual/search.texi
parentfc4157daf55dc41131e71c6149fbdc4099cb9b57 (diff)
Update.
1998-01-08 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> * manual/Makefile (stamp-summary): Remove space after -t option for compatibility with non-GNU sort programs. 1999-01-08 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> * manual/search.texi (Comparison Functions): Fix compare_doubles example. 1999-01-07 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> * Makerules (do-tests-clean): Remove reference to obsolete variable tests-static.
Diffstat (limited to 'manual/search.texi')
-rw-r--r--manual/search.texi7
1 files changed, 5 insertions, 2 deletions
diff --git a/manual/search.texi b/manual/search.texi
index b43153a44b..f561ef9e34 100644
--- a/manual/search.texi
+++ b/manual/search.texi
@@ -39,9 +39,12 @@ numbers of type @code{double}:
@smallexample
int
-compare_doubles (const double *a, const double *b)
+compare_doubles (const void *a, const void *b)
@{
- return (int) (*a - *b);
+ const double *da = (const double *) a;
+ const double *db = (const double *) b;
+
+ return (*da > *db) - (*da < *db);
@}
@end smallexample