We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e13673 commit 797f644Copy full SHA for 797f644
src/lpython/tests/test_llvm.cpp
@@ -991,7 +991,7 @@ TEST_CASE("PythonCompiler i8 expressions") {
991
r = e.evaluate2("i8(1) - i8(2)");
992
CHECK(r.ok);
993
CHECK(r.result.type == PythonCompiler::EvalResult::integer1);
994
- CHECK(r.result.i8 == -1);
+ CHECK(r.result.i8 == (int8_t)-1);
995
996
r = e.evaluate2("i8(1) * i8(2)");
997
@@ -1153,7 +1153,7 @@ TEST_CASE("PythonCompiler i16 expressions") {
1153
r = e.evaluate2("i16(1) - i16(2)");
1154
1155
CHECK(r.result.type == PythonCompiler::EvalResult::integer2);
1156
- CHECK(r.result.i16 == -1);
+ CHECK(r.result.i16 == (int16_t)-1);
1157
1158
r = e.evaluate2("i16(1) * i16(2)");
1159
0 commit comments