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 ea9715b commit 4649261Copy full SHA for 4649261
src/libasr/codegen/asr_to_llvm.cpp
@@ -6329,7 +6329,7 @@ class ASRToLLVMVisitor : public ASR::BaseVisitor<ASRToLLVMVisitor>
6329
arg_kind != dest_kind )
6330
{
6331
if (dest_kind > arg_kind) {
6332
- tmp = builder->CreateSExt(tmp, llvm_utils->getIntType(dest_kind));
+ tmp = builder->CreateZExt(tmp, llvm_utils->getIntType(dest_kind));
6333
} else {
6334
tmp = builder->CreateTrunc(tmp, llvm_utils->getIntType(dest_kind));
6335
}
0 commit comments