From 0f2e01a503d5763087da95d7a001cf84f190d19b Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Tue, 29 Nov 2016 14:42:57 -0500 Subject: Two small cleanups --- src/basic/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/basic') diff --git a/src/basic/util.c b/src/basic/util.c index c1b5ca1ef7..d0424e5392 100644 --- a/src/basic/util.c +++ b/src/basic/util.c @@ -493,7 +493,7 @@ void *xbsearch_r(const void *key, const void *base, size_t nmemb, size_t size, u = nmemb; while (l < u) { idx = (l + u) / 2; - p = (void *)(((const char *) base) + (idx * size)); + p = (const char *) base + idx * size; comparison = compar(key, p, arg); if (comparison < 0) u = idx; -- cgit v1.2.3-54-g00ecf