From aa55ccb12061123ca56c2b61402899b73276d2df Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Sat, 2 Apr 2005 20:20:01 +0000 Subject: merge from gcc --- libiberty/bsearch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libiberty/bsearch.c') diff --git a/libiberty/bsearch.c b/libiberty/bsearch.c index bb5555e..771d5de 100644 --- a/libiberty/bsearch.c +++ b/libiberty/bsearch.c @@ -79,7 +79,7 @@ bsearch (register const void *key, const void *base0, p = base + (lim >> 1) * size; cmp = (*compar)(key, p); if (cmp == 0) - return (p); + return (void *)p; if (cmp > 0) { /* key > p: move right */ base = (const char *)p + size; lim--; -- cgit v1.1