Visitar URL original
Add some clippy lints by ShaharNaveh · Pull Request #7755 · RustPython/RustPython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix jit
  • Loading branch information
ShaharNaveh committed May 1, 2026
commit 346cea4dadb402f3f69aca5c58986dd29f7ed3e3
6 changes: 4 additions & 2 deletions crates/jit/src/instructions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,10 @@ impl<'a, 'b> FunctionCompiler<'a, 'b> {
let b_type: Option<JitType> = b.to_jit_type();

match (a, b) {
(JitValue::Int(a) | JitValue::Bool(a), JitValue::Int(b))
| (JitValue::Bool(a) | JitValue::Int(a), JitValue::Bool(b)) => {
(
JitValue::Int(a) | JitValue::Bool(a),
JitValue::Int(b) | JitValue::Bool(b),
) => {
let operand_one = match a_type.unwrap() {
JitType::Bool => self.builder.ins().uextend(types::I64, a),
_ => a,
Expand Down
Loading