Skip to content

Commit 823cada

Browse files
Smit-createcertik
authored andcommitted
fix typo
1 parent b6f5d22 commit 823cada

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
@@ -39,7 +39,7 @@
3939
"test_builtin_oct.py"
4040
]
4141

42-
CUR_DIR = ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__)))
42+
CUR_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__)))
4343

4444
def main():
4545
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)