about summary refs log tree commit diff
path: root/debug/mbstowcs_chk.c
diff options
context:
space:
mode:
Diffstat (limited to 'debug/mbstowcs_chk.c')
-rw-r--r--debug/mbstowcs_chk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug/mbstowcs_chk.c b/debug/mbstowcs_chk.c
index 4359e194f2..d624a79c56 100644
--- a/debug/mbstowcs_chk.c
+++ b/debug/mbstowcs_chk.c
@@ -23,7 +23,7 @@
 size_t
 __mbstowcs_chk (wchar_t *dst, const char *src, size_t len, size_t dstlen)
 {
-  if (__builtin_expect (dstlen < len, 0))
+  if (__glibc_unlikely (dstlen < len))
     __chk_fail ();
 
   mbstate_t state;