[libc-commits] [libc] 27352e6 - [libc] fix typo introduced in inline_bcmp_byte_per_byte (#83356)
via libc-commits
libc-commits at lists.llvm.org
Wed Feb 28 17:13:09 PST 2024
Author: Nick Desaulniers
Date: 2024-02-28T19:13:05-06:00
New Revision: 27352e600aab6a50939db77a6eacc94a5057d66f
URL: https://github.com/llvm/llvm-project/commit/27352e600aab6a50939db77a6eacc94a5057d66f
DIFF: https://github.com/llvm/llvm-project/commit/27352e600aab6a50939db77a6eacc94a5057d66f.diff
LOG: [libc] fix typo introduced in inline_bcmp_byte_per_byte (#83356)
My global find+replace was overzealous and broke post submit unit tests.
Link: #83345
Added:
Modified:
libc/src/string/memory_utils/generic/byte_per_byte.h
Removed:
################################################################################
diff --git a/libc/src/string/memory_utils/generic/byte_per_byte.h b/libc/src/string/memory_utils/generic/byte_per_byte.h
index 948da8ab2a8702..9515398794df40 100644
--- a/libc/src/string/memory_utils/generic/byte_per_byte.h
+++ b/libc/src/string/memory_utils/generic/byte_per_byte.h
@@ -56,7 +56,7 @@ inline_bcmp_byte_per_byte(CPtr p1, CPtr p2, size_t count, size_t offset = 0) {
LIBC_LOOP_NOUNROLL
for (; offset < count; ++offset)
if (p1[offset] != p2[offset])
- return BcmpReturnType::zero();
+ return BcmpReturnType::nonzero();
return BcmpReturnType::zero();
}
More information about the libc-commits
mailing list