Skip to content

Commit 758116a

Browse files
committed
Suppress signed/unsigned comparison warning.
1 parent e2c0517 commit 758116a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toolchain/check/cpp/location.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static auto GetFileInfo(Context& context, SemIR::CheckIRId ir_id) -> FileInfo {
3434

3535
// If we've seen this file before, reuse the same FileID.
3636
auto& file_start_locs = context.cpp_carbon_file_locations();
37-
if (file_start_locs.size() <= file_index) {
37+
if (static_cast<int>(file_start_locs.size()) <= file_index) {
3838
// Never valid; prepare a slot for the caching below.
3939
file_start_locs.resize(file_index + 1);
4040
} else if (file_start_locs[file_index].isValid()) {

0 commit comments

Comments
 (0)