Skip to content

Commit 85dec85

Browse files
committed
fixed loop condition in contains_char
1 parent d787008 commit 85dec85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/wchar/wcspbrk.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
namespace LIBC_NAMESPACE_DECL {
1515

1616
bool contains_char(const wchar_t *str, wchar_t target) {
17-
for (; *str != 0; str++)
17+
for (; *str != L'\0'; str++)
1818
if (*str == target)
1919
return true;
2020

0 commit comments

Comments
 (0)