fast image operations
Diffstat (limited to 'src/dyn/mod.rs')
| -rw-r--r-- | src/dyn/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dyn/mod.rs b/src/dyn/mod.rs index f3817d3..a760813 100644 --- a/src/dyn/mod.rs +++ b/src/dyn/mod.rs @@ -142,7 +142,7 @@ impl<T: AsRef<[u8]>> DynImage<T> { [u8; P]: PFrom<3>, [u8; P]: PFrom<4>, { - e!(self, |i| PFrom::pfrom(unsafe { i.pixel(x, y) })) + e!(self, |i| PFrom::pfrom(unsafe { *i.pixel(x, y) })) } /// Bytes of this image. |