From 5e29d29416b568f380a2ab753e3e77e96af4b094 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 27 Apr 2016 17:26:41 +0200 Subject: Error-check implies unlikely branching MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/allocator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/allocator.c') diff --git a/src/allocator.c b/src/allocator.c index 1a2d505..4f81171 100644 --- a/src/allocator.c +++ b/src/allocator.c @@ -22,7 +22,7 @@ libzahl_realloc(z_t a, size_t need) a->chars = new; } else { a->chars = realloc(a->chars, new_size * sizeof(zahl_char_t)); - if (check(unlikely(!a->chars))) + if (check(!a->chars)) libzahl_memfailure(); } a->alloced = new_size; -- cgit v1.2.3-70-g09d2