Skip to content

Commit 8f03127

Browse files
committed
fix typo
1 parent c52fd5c commit 8f03127

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

integration_tests/run_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"test_builtin_oct.py"
3434
]
3535

36-
CUR_DIR = ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__)))
36+
CUR_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__)))
3737

3838
def main():
3939
if not os.path.exists(os.path.join(CUR_DIR, 'tmp')):

src/lpython/semantics/python_ast_to_asr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ class BodyVisitor : public CommonVisitor<BodyVisitor> {
854854

855855
void visit_FunctionDef(const AST::FunctionDef_t &x) {
856856
SymbolTable *old_scope = current_scope;
857-
ASR::symbol_t *t = t = current_scope->scope[x.m_name];
857+
ASR::symbol_t *t = current_scope->scope[x.m_name];
858858
if (ASR::is_a<ASR::Subroutine_t>(*t)) {
859859
handle_fn(x, *ASR::down_cast<ASR::Subroutine_t>(t));
860860
} else if (ASR::is_a<ASR::Function_t>(*t)) {

0 commit comments

Comments
 (0)