Skip to content

Commit ef5ab67

Browse files
committed
done
1 parent 155ec90 commit ef5ab67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libasr/pass/select_case.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ void case_to_if_with_fall_through(Allocator& al, const ASR::Select_t& x,
167167
ASR::expr_t* case_found = ASRUtils::EXPR(ASR::make_Var_t(al, loc, case_found_sym));
168168
body.push_back(al, ASRUtils::STMT(ASR::make_Assignment_t(al, loc, case_found, false_asr, nullptr)));
169169
int label_id = ASRUtils::LabelGenerator::get_instance()->get_unique_label();
170-
for( int idx = 0; idx < x.n_body; idx++ ) {
170+
for( size_t idx = 0; idx < x.n_body; idx++ ) {
171171
ASR::case_stmt_t* case_body = x.m_body[idx];
172172
switch(case_body->type) {
173173
case ASR::case_stmtType::CaseStmt: {
@@ -193,7 +193,7 @@ void case_to_if_with_fall_through(Allocator& al, const ASR::Select_t& x,
193193
}
194194
}
195195
}
196-
for( int id = 0; id < x.n_default; id++ ) {
196+
for( size_t id = 0; id < x.n_default; id++ ) {
197197
body.push_back(al, x.m_default[id]);
198198
}
199199
SymbolTable* block_symbol_table = al.make_new<SymbolTable>(scope);

0 commit comments

Comments
 (0)