diff options
author | Mattias Andrée <maandree@kth.se> | 2016-02-24 18:01:15 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-02-24 18:01:15 +0100 |
commit | 781c8b0253daca068f9ae406b171692524c74cfc (patch) | |
tree | 7d61de66b25d9aa947eb02c894c3fa71cd317ad9 /src/stdlib | |
parent | add bsearch (diff) | |
download | slibc-781c8b0253daca068f9ae406b171692524c74cfc.tar.gz slibc-781c8b0253daca068f9ae406b171692524c74cfc.tar.bz2 slibc-781c8b0253daca068f9ae406b171692524c74cfc.tar.xz |
fix terrible mistake in bsearch
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/stdlib')
-rw-r--r-- | src/stdlib/bsearch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stdlib/bsearch.c b/src/stdlib/bsearch.c index c459ea4..50e0922 100644 --- a/src/stdlib/bsearch.c +++ b/src/stdlib/bsearch.c @@ -48,7 +48,8 @@ void* (bsearch)(const void* sought, const void* list, size_t n, size_t width, int (*compar)(const void*, const void*)) { - int cmp, i; + int cmp; + size_t i; char* test; if (n == 0) return NULL; |