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