From a4a2bc8a129b9a3ad40db08833348e102a8f486a Mon Sep 17 00:00:00 2001 From: Vipul Cariappa Date: Sat, 6 Jul 2024 09:39:38 +0530 Subject: [PATCH] fix --- src/lpython/python_evaluator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lpython/python_evaluator.cpp b/src/lpython/python_evaluator.cpp index b056d81711..f11b98d5df 100644 --- a/src/lpython/python_evaluator.cpp +++ b/src/lpython/python_evaluator.cpp @@ -134,7 +134,7 @@ Result PythonCompiler::evaluate( call_run_fn = true; } - ASR::symbol_t *global_underscore_sym = symbol_table->get_symbol("_" + run_fn); + ASR::symbol_t *global_underscore_sym = symbol_table->get_symbol(global_underscore_name); if ((return_type == "struct") && (global_underscore_sym)) { // we compute the offsets of the struct's attribute here // we will be using it later in aggregate_type_to_string to print the struct @@ -266,7 +266,7 @@ Result PythonCompiler::evaluate( ASR::Variable_t *b = al.make_new(); *b = *a; Str s; - s.from_str_view("_"); + s.from_str(al, "_"); b->m_name = s.c_str(al); symbol_table->add_symbol("_", ASR::down_cast((ASR::asr_t*)b)); }