From e949bf64e01c9a2de41eb3a4479db0e58cd4caa6 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 14 Mar 2016 01:00:26 +0100 Subject: Fix so that no workaround is required. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks to Alexis Megas. Signed-off-by: Mattias Andrée --- src/allocator.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src') diff --git a/src/allocator.c b/src/allocator.c index e75546f..44f7985 100644 --- a/src/allocator.c +++ b/src/allocator.c @@ -5,11 +5,6 @@ void libzahl_realloc(z_t a, size_t need) { -#if defined(__clang__) /* https://llvm.org/bugs/show_bug.cgi?id=26930 */ - volatile size_t j; -#else -# define j i -#endif size_t i, x; zahl_char_t *new; @@ -18,7 +13,7 @@ libzahl_realloc(z_t a, size_t need) need |= need >> 1; need |= need >> 2; need |= need >> 4; - for (j = sizeof(need), x = 8; j; j >>= 1, x <<= 1) + for (i = sizeof(need), x = 8; (i >>= 1); x <<= 1) need |= need >> x; need += 1; } -- cgit v1.2.3-70-g09d2