Skip to content

Commit 4dd0549

Browse files
committed
done
1 parent 66ad7d5 commit 4dd0549

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libasr/codegen/asr_to_c_cpp.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ R"(#include <stdio.h>
10951095
break;
10961096
}
10971097
case (ASR::cast_kindType::LogicalToCharacter) : {
1098-
src = src + " ? \"True\" : \"False\"";
1098+
src = src + " ? \"True\" : \"False\"";
10991099
break;
11001100
}
11011101
case (ASR::cast_kindType::IntegerToLogical) : {
@@ -1116,13 +1116,13 @@ R"(#include <stdio.h>
11161116
break;
11171117
}
11181118
case (ASR::cast_kindType::CharacterToLogical) : {
1119-
11201119
src = "(bool)(strlen(" + src + ") > 0)";
11211120
break;
11221121
}
11231122
case (ASR::cast_kindType::ComplexToLogical) : {
11241123
src = "(bool)(" + src + ")";
11251124
break;
1125+
}
11261126
case (ASR::cast_kindType::IntegerToCharacter) : {
11271127
ASR::ttype_t* src_type = ASRUtils::expr_type(x.m_arg);
11281128
int src_kind = ASRUtils::extract_kind_from_ttype_t(src_type);

0 commit comments

Comments
 (0)