Skip to content

Commit 27352e6

Browse files
[libc] fix typo introduced in inline_bcmp_byte_per_byte (llvm#83356)
My global find+replace was overzealous and broke post submit unit tests. Link: llvm#83345
1 parent 6a65b44 commit 27352e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/string/memory_utils/generic/byte_per_byte.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ inline_bcmp_byte_per_byte(CPtr p1, CPtr p2, size_t count, size_t offset = 0) {
5656
LIBC_LOOP_NOUNROLL
5757
for (; offset < count; ++offset)
5858
if (p1[offset] != p2[offset])
59-
return BcmpReturnType::zero();
59+
return BcmpReturnType::nonzero();
6060
return BcmpReturnType::zero();
6161
}
6262

0 commit comments

Comments
 (0)