Skip to content

Commit fba2868

Browse files
committed
Set the type to be Real, now that runtime abs takes a float
1 parent d67723e commit fba2868

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lpython/semantics/python_ast_to_asr.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2162,8 +2162,8 @@ class BodyVisitor : public CommonVisitor<BodyVisitor> {
21622162
);
21632163
current_scope->scope[local_sym] = ASR::down_cast<ASR::symbol_t>(fn);
21642164

2165-
ASR::ttype_t *a_type = ASRUtils::TYPE(ASR::make_Integer_t(al, x.base.base.loc,
2166-
4, nullptr, 0));
2165+
ASR::ttype_t *a_type = ASRUtils::TYPE(ASR::make_Real_t(al,
2166+
x.base.base.loc, 8, nullptr, 0));
21672167
tmp = ASR::make_FunctionCall_t(al, x.base.base.loc, ASR::down_cast<ASR::symbol_t>(fn),
21682168
nullptr, args.p, args.size(), nullptr, 0, a_type, nullptr, nullptr);
21692169
return;

0 commit comments

Comments
 (0)