File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ cd test-bld
53
53
# compiled in Release mode and we get link failures if we mix and match build
54
54
# modes:
55
55
BUILD_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 ..
57
57
cmake - - build . - - target install - j16
58
58
./ src / lpython / tests / test_lpython
59
59
#./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(
143
143
->m_symtab ->get_symbol (run_fn);
144
144
LCOMPILERS_ASSERT (fn)
145
145
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);
147
147
result.type = EvalResult::unsignedInteger1;
148
148
result.u8 = r;
149
149
} else {
150
- int8_t r = e->execfn <int8_t >(run_fn);
150
+ int8_t r = e->execfn <int >(run_fn);
151
151
result.type = EvalResult::integer1;
152
152
result.i8 = r;
153
153
}
@@ -156,11 +156,11 @@ Result<PythonCompiler::EvalResult> PythonCompiler::evaluate(
156
156
->m_symtab ->get_symbol (run_fn);
157
157
LCOMPILERS_ASSERT (fn)
158
158
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);
160
160
result.type = EvalResult::unsignedInteger2;
161
161
result.u16 = r;
162
162
} else {
163
- int16_t r = e->execfn <int16_t >(run_fn);
163
+ int16_t r = e->execfn <int >(run_fn);
164
164
result.type = EvalResult::integer2;
165
165
result.i16 = r;
166
166
}
You can’t perform that action at this time.
0 commit comments