Skip to content

Commit

Permalink
fix signedcast
Browse files Browse the repository at this point in the history
  • Loading branch information
edg-l committed May 8, 2024
1 parent 81bd558 commit 82fbd60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/edlang_codegen_llvm/src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ fn compile_rvalue<'ctx>(
unreachable!("cast from {:?} to ptr", current_ty)
}
} else if target_llvm_ty.is_int_type() {
let is_signed = target_ty.kind.is_signed_integer();
let is_signed = ty.kind.is_signed_integer();
let target_llvm_ty = target_llvm_ty.into_int_type();
if current_ty.is_int_type() {
// int to int casts
Expand Down

0 comments on commit 82fbd60

Please sign in to comment.