Skip to content

Commit 79db7d5

Browse files
aidenfoxiveyk0kubun
authored andcommitted
ZJIT: Remove unnecessary as casts
1 parent c112368 commit 79db7d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

zjit/src/hir.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2026,7 +2026,7 @@ impl Function {
20262026
return true;
20272027
}
20282028
let frame_state = self.frame_state(state);
2029-
let iseq_insn_idx = frame_state.insn_idx as usize;
2029+
let iseq_insn_idx = frame_state.insn_idx;
20302030
let Some(profiled_type) = self.profiled_type_of_at(val, iseq_insn_idx) else {
20312031
return false;
20322032
};

zjit/src/hir_type/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ impl Type {
252252
Const::CInt8(v) => Self::from_cint(types::CInt8, v as i64),
253253
Const::CInt16(v) => Self::from_cint(types::CInt16, v as i64),
254254
Const::CInt32(v) => Self::from_cint(types::CInt32, v as i64),
255-
Const::CInt64(v) => Self::from_cint(types::CInt64, v as i64),
255+
Const::CInt64(v) => Self::from_cint(types::CInt64, v),
256256
Const::CUInt8(v) => Self::from_cint(types::CUInt8, v as i64),
257257
Const::CUInt16(v) => Self::from_cint(types::CUInt16, v as i64),
258258
Const::CUInt32(v) => Self::from_cint(types::CUInt32, v as i64),

0 commit comments

Comments
 (0)