aboutsummaryrefslogtreecommitdiff
path: root/string/test-memmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'string/test-memmem.c')
-rw-r--r--string/test-memmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string/test-memmem.c b/string/test-memmem.c
index 1b4e4b7..caaa191 100644
--- a/string/test-memmem.c
+++ b/string/test-memmem.c
@@ -44,7 +44,7 @@ simple_memmem (const void *haystack, size_t haystack_len, const void *needle,
/* Sanity check, otherwise the loop might search through the whole
memory. */
- if (__builtin_expect (haystack_len < needle_len, 0))
+ if (__glibc_unlikely (haystack_len < needle_len))
return NULL;
for (begin = (const char *) haystack; begin <= last_possible; ++begin)