Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libc] fix typo introduced in inline_bcmp_byte_per_byte #83356

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

nickdesaulniers
Copy link
Member

My global find+replace was overzealous and broke post submit unit tests.

Link: #83345

My global find+replace was overzealous and broke post submit unit tests.

Link: llvm#83345
@llvmbot
Copy link
Collaborator

llvmbot commented Feb 28, 2024

@llvm/pr-subscribers-libc

Author: Nick Desaulniers (nickdesaulniers)

Changes

My global find+replace was overzealous and broke post submit unit tests.

Link: #83345


Full diff: https://github.com/llvm/llvm-project/pull/83356.diff

1 Files Affected:

  • (modified) libc/src/string/memory_utils/generic/byte_per_byte.h (+1-1)
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();
 }
 

nickdesaulniers referenced this pull request Feb 29, 2024
Codify that we use lower_case for
readability-identifier-naming.ConstexprFunctionCase and then fix the 11
violations (rather than codify UPPER_CASE and have to fix the 170 violations).
@nickdesaulniers
Copy link
Member Author

nickdesaulniers commented Feb 29, 2024 via email

@jhuber6 jhuber6 merged commit 27352e6 into llvm:main Feb 29, 2024
6 checks passed
mylai-mtk pushed a commit to mylai-mtk/llvm-project that referenced this pull request Jul 12, 2024
My global find+replace was overzealous and broke post submit unit tests.

Link: llvm#83345
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants