Skip to content

Commit

Permalink
fn invert: Make const.
Browse files Browse the repository at this point in the history
  • Loading branch information
kkysen committed Sep 18, 2023
1 parent 55c7cf3 commit 6d5d46a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wedge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ const fn hflip(src: &[u8; 64 * 64]) -> [u8; 64 * 64] {
dst
}

fn invert<const N: usize>(src: &[u8; N], w: usize, h: usize) -> [u8; N] {
const fn invert<const N: usize>(src: &[u8; N], w: usize, h: usize) -> [u8; N] {
assert!(w * h == N);
let mut dst = [0; N];

Expand Down

0 comments on commit 6d5d46a

Please sign in to comment.