Skip to content

Commit

Permalink
Update imageset.rs
Browse files Browse the repository at this point in the history
Had another palette related crash - fixed it with this change. You'll probably want to amend it to match what you want. Never changed rust code before :)
  • Loading branch information
mattuna15 committed Feb 28, 2020
1 parent 16ce172 commit 0bab0e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vera/src/imageset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,9 @@ fn find_optimal_range(
// if we're in range, we're done
if max - min <= range as usize {
for i in 0..permutation.len() {
if i == range_vals.len() {
break;
}
range_vals[i].1 = vec![usize::from_str_radix(permutation[i], 10)?];
if max == min {
break;
Expand Down

0 comments on commit 0bab0e2

Please sign in to comment.