Skip to content

Commit 357833b

Browse files
committed
fix
1 parent 208584d commit 357833b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

libc/src/__support/CPP/string_view.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ class string_view {
3131

3232
LIBC_INLINE static int compareMemory(const char *Lhs, const char *Rhs,
3333
size_t Length) {
34-
for (size_t I = 0; I < Length; ++I)
35-
if (int Diff = (int)Lhs[I] - (int)Rhs[I])
34+
for (size_t i = 0; i < Length; ++i)
35+
if (int Diff = (int)Lhs[i] - (int)Rhs[i])
3636
return Diff;
3737
return 0;
3838
}

libc/src/__support/CPP/utility/in_place.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ template <class T> struct in_place_type_t {
2727
};
2828
template <class T> LIBC_INLINE_VAR constexpr in_place_type_t<T> in_place_type{};
2929

30-
template <size_t I> struct in_place_index_t {
30+
template <size_t IDX> struct in_place_index_t {
3131
LIBC_INLINE explicit in_place_index_t() = default;
3232
};
33-
template <size_t I>
34-
LIBC_INLINE_VAR constexpr in_place_index_t<I> in_place_index{};
33+
template <size_t IDX>
34+
LIBC_INLINE_VAR constexpr in_place_index_t<IDX> in_place_index{};
3535

3636
} // namespace cpp
3737
} // namespace LIBC_NAMESPACE_DECL

0 commit comments

Comments
 (0)