]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - debug/wcpncpy_chk.c
Use glibc_likely instead __builtin_expect.
[thirdparty/glibc.git] / debug / wcpncpy_chk.c
index b552a2ece8177cde6bc8001aa7031a883d155c89..e03bee6ebd5838eb298ea8a91234e77dab3348d0 100644 (file)
@@ -23,7 +23,7 @@
 wchar_t *
 __wcpncpy_chk (wchar_t *dest, const wchar_t *src, size_t n, size_t destlen)
 {
-  if (__builtin_expect (destlen < n, 0))
+  if (__glibc_unlikely (destlen < n))
     __chk_fail ();
 
   /* This function is not often enough used to justify not using a