[libc-commits] [libc] [libc] fix typo introduced in inline_bcmp_byte_per_byte (PR #83356)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Wed Feb 28 15:50:55 PST 2024
https://github.com/nickdesaulniers created https://github.com/llvm/llvm-project/pull/83356
My global find+replace was overzealous and broke post submit unit tests.
Link: #83345
>From 03d2650354bcb128ed0f8d66b66fe2fdc0a4b4db Mon Sep 17 00:00:00 2001
From: Nick Desaulniers <ndesaulniers at google.com>
Date: Wed, 28 Feb 2024 15:49:37 -0800
Subject: [PATCH] [libc] fix typo introduced in inline_bcmp_byte_per_byte
My global find+replace was overzealous and broke post submit unit tests.
Link: #83345
---
libc/src/string/memory_utils/generic/byte_per_byte.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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