Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions libc/src/string/string_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,11 @@ template <typename T> LIBC_INLINE size_t string_length(const T *src) {
// string a block at a time.
if constexpr (cpp::is_same_v<T, char>)
return string_length_wide_read<unsigned int>(src);
#else
#endif
size_t length;
for (length = 0; *src; ++src, ++length)
;
return length;
#endif
}

template <typename Word>
Expand Down
Loading