Commit 0897ddff authored by Jeremy Soller's avatar Jeremy Soller

Remove unnecessary parens

parent 78cff3f5
......@@ -102,7 +102,7 @@ impl Screen for GraphicScreen {
let size = self.display.offscreen.len();
self.seek = match whence {
SEEK_SET => cmp::min(size, (pos/4)),
SEEK_SET => cmp::min(size, pos/4),
SEEK_CUR => cmp::max(0, cmp::min(size as isize, self.seek as isize + (pos/4) as isize)) as usize,
SEEK_END => cmp::max(0, cmp::min(size as isize, size as isize + (pos/4) as isize)) as usize,
_ => return Err(Error::new(EINVAL))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment