We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2c0517 commit 758116aCopy full SHA for 758116a
toolchain/check/cpp/location.cpp
@@ -34,7 +34,7 @@ static auto GetFileInfo(Context& context, SemIR::CheckIRId ir_id) -> FileInfo {
34
35
// If we've seen this file before, reuse the same FileID.
36
auto& file_start_locs = context.cpp_carbon_file_locations();
37
- if (file_start_locs.size() <= file_index) {
+ if (static_cast<int>(file_start_locs.size()) <= file_index) {
38
// Never valid; prepare a slot for the caching below.
39
file_start_locs.resize(file_index + 1);
40
} else if (file_start_locs[file_index].isValid()) {
0 commit comments