diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-11-29 14:42:57 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-11-29 20:34:08 -0500 |
commit | 0f2e01a503d5763087da95d7a001cf84f190d19b (patch) | |
tree | 0a823623ffdae77224435c4d82102ee6b282af9e /src/basic | |
parent | 97506e85e2cf8c726939a872239698d5279a1cfc (diff) |
Two small cleanups
Diffstat (limited to 'src/basic')
-rw-r--r-- | src/basic/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |