pnm decoding and encoding
Diffstat (limited to 'src/pam.rs')
-rw-r--r--src/pam.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pam.rs b/src/pam.rs
index 49225cc..37bfea6 100644
--- a/src/pam.rs
+++ b/src/pam.rs
@@ -147,10 +147,10 @@ unsafe fn encode_into<const N: usize>(
for &x in buf {
o.push(x ^ 1)
}
- o.sub_ptr(out)
+ o.offset_from_unsigned(out)
} else {
o.copy_from(buf.as_ptr(), buf.len());
- o.sub_ptr(out) + buf.len()
+ o.offset_from_unsigned(out) + buf.len()
}
}