File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ cd test-bld
5353# compiled in Release mode and we get link failures if we mix and match build
5454# modes:
5555BUILD_TYPE = "Release"
56- cmake - G $LFORTRAN_CMAKE_GENERATOR - D CMAKE_C_COMPILER = gcc - DCMAKE_CXX_COMPILER = g + + - DCMAKE_VERBOSE_MAKEFILE = ON - DWITH_LLVM = yes - DWITH_LSP = yes - DWITH_XEUS = yes - DCMAKE_PREFIX_PATH = $CONDA_PREFIX - DCMAKE_INSTALL_PREFIX = $CONDA_PREFIX - DWITH_LFORTRAN_BINARY_MODFILES = no - DCMAKE_BUILD_TYPE = @(BUILD_TYPE ) - DWITH_RUNTIME_STACKTRACE = $ENABLE_RUNTIME_STACKTRACE ..
56+ cmake - G $LFORTRAN_CMAKE_GENERATOR - DCMAKE_VERBOSE_MAKEFILE = ON - DWITH_LLVM = yes - DWITH_LSP = yes - DWITH_XEUS = yes - DCMAKE_PREFIX_PATH = $CONDA_PREFIX - DCMAKE_INSTALL_PREFIX = $CONDA_PREFIX - DWITH_LFORTRAN_BINARY_MODFILES = no - DCMAKE_BUILD_TYPE = @(BUILD_TYPE ) - DWITH_RUNTIME_STACKTRACE = $ENABLE_RUNTIME_STACKTRACE ..
5757cmake - - build . - - target install - j16
5858./ src / lpython / tests / test_lpython
5959#./src/bin/lpython < ../src/bin/example_input.txt
Original file line number Diff line number Diff line change @@ -143,11 +143,11 @@ Result<PythonCompiler::EvalResult> PythonCompiler::evaluate(
143143 ->m_symtab ->get_symbol (run_fn);
144144 LCOMPILERS_ASSERT (fn)
145145 if (ASRUtils::get_FunctionType (fn)->m_return_var_type ->type == ASR ::ttypeType::UnsignedInteger) {
146- uint8_t r = e->execfn <uint8_t >(run_fn);
146+ uint8_t r = e->execfn <int >(run_fn);
147147 result.type = EvalResult::unsignedInteger1;
148148 result.u8 = r;
149149 } else {
150- int8_t r = e->execfn <int8_t >(run_fn);
150+ int8_t r = e->execfn <int >(run_fn);
151151 result.type = EvalResult::integer1;
152152 result.i8 = r;
153153 }
@@ -156,11 +156,11 @@ Result<PythonCompiler::EvalResult> PythonCompiler::evaluate(
156156 ->m_symtab ->get_symbol (run_fn);
157157 LCOMPILERS_ASSERT (fn)
158158 if (ASRUtils::get_FunctionType (fn)->m_return_var_type ->type == ASR ::ttypeType::UnsignedInteger) {
159- uint16_t r = e->execfn <uint16_t >(run_fn);
159+ uint16_t r = e->execfn <int >(run_fn);
160160 result.type = EvalResult::unsignedInteger2;
161161 result.u16 = r;
162162 } else {
163- int16_t r = e->execfn <int16_t >(run_fn);
163+ int16_t r = e->execfn <int >(run_fn);
164164 result.type = EvalResult::integer2;
165165 result.i16 = r;
166166 }
You can’t perform that action at this time.
0 commit comments