Very minor cleanup.

This commit is contained in:
Rhinemann 2023-06-27 22:34:57 +03:00
parent 1e505683cb
commit 7ab69ecbe8
1 changed files with 2 additions and 3 deletions

View File

@ -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()
}