Skip to content

Commit

Permalink
Apply 1 suggestion(s) to 1 file(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Jan 12, 2022
1 parent 4270e58 commit 6bcb929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lfortran/semantics/python_ast_to_asr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ class BodyVisitor : public CommonVisitor<BodyVisitor> {
LFORTRAN_ASSERT(ASRUtils::all_args_evaluated(args));
ASR::expr_t* char_expr = args[0];
ASR::ttype_t* char_type = LFortran::ASRUtils::expr_type(char_expr);
if (LFortran::ASR::is_a<LFortran::ASR::Character_t>(*char_type)) {
if (ASR::is_a<ASR::Character_t>(*char_type)) {
char* c = ASR::down_cast<ASR::ConstantString_t>(LFortran::ASRUtils::expr_value(char_expr))->m_s;
ASR::ttype_t* int_type =
LFortran::ASRUtils::TYPE(ASR::make_Integer_t(al,
Expand Down

0 comments on commit 6bcb929

Please sign in to comment.