Skip to content

Commit 82c1b04

Browse files
committed
C: Add missing visit_UnsignedIntegerConstant
1 parent c9545d0 commit 82c1b04

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/libasr/codegen/asr_to_c_cpp.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,6 +1298,11 @@ PyMODINIT_FUNC PyInit_lpython_module_)" + fn_name + R"((void) {
12981298
last_expr_precedence = 2;
12991299
}
13001300

1301+
void visit_UnsignedIntegerConstant(const ASR::UnsignedIntegerConstant_t &x) {
1302+
src = std::to_string(x.m_n);
1303+
last_expr_precedence = 2;
1304+
}
1305+
13011306
void visit_RealConstant(const ASR::RealConstant_t &x) {
13021307
// TODO: remove extra spaces from the front of double_to_scientific result
13031308
src = double_to_scientific(x.m_r);

0 commit comments

Comments
 (0)