Very minor cleanup.
This commit is contained in:
parent
1e505683cb
commit
7ab69ecbe8
|
@ -198,11 +198,10 @@ pub fn binary_subtraction(minuend: &BasicRegister, subtrahend: &BasicRegister) -
|
|||
|
||||
match final_carry {
|
||||
true => {
|
||||
let mut complement = vec![false; difference.len() - 1];
|
||||
complement.append(&mut vec![true]);
|
||||
let mut complement: Vec<bool> = vec![false; difference.len() - 1];
|
||||
complement.extend([true]);
|
||||
binary_sum(&difference, &BasicRegister::new(complement.into()))
|
||||
}
|
||||
false => difference.negated(),
|
||||
}
|
||||
// BasicRegister::default()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue