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 9701c9e commit b65d290Copy full SHA for b65d290
src/libasr/codegen/asr_to_llvm.cpp
@@ -6314,7 +6314,7 @@ class ASRToLLVMVisitor : public ASR::BaseVisitor<ASRToLLVMVisitor>
6314
arg_kind != dest_kind )
6315
{
6316
if (dest_kind > arg_kind) {
6317
- tmp = builder->CreateSExt(tmp, llvm_utils->getIntType(dest_kind));
+ tmp = builder->CreateZExt(tmp, llvm_utils->getIntType(dest_kind));
6318
} else {
6319
tmp = builder->CreateTrunc(tmp, llvm_utils->getIntType(dest_kind));
6320
}
0 commit comments