Skip to content

Commit

Permalink
Fixed Rust issue 41620
Browse files Browse the repository at this point in the history
  • Loading branch information
bvssvni committed Jun 12, 2017
1 parent c116223 commit 083468d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/imageops/sample.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ pub fn filter3x3<I, P, S>(image: &I, kernel: &[f32])
let max: f32 = NumCast::from(max).unwrap();

let sum = match kernel.iter().fold(0.0, |s, &item| s + item) {
0.0 => 1.0,
x if x == 0.0 => 1.0,
sum => sum
};
let sum = (sum, sum, sum, sum);
Expand Down

0 comments on commit 083468d

Please sign in to comment.