Removed trivial casts and changed frame.step to usize

This commit is contained in:
Josh Mitchell
2020-11-10 20:45:38 +11:00
committed by daniel
parent 734048d572
commit 3c36d3040e
6 changed files with 28 additions and 27 deletions

View File

@@ -60,7 +60,7 @@ mod tests {
let mut nframes: u64 = 0;
unsafe {
let code = read_xtc_nframes(path.as_ptr() as *const i8, &mut nframes);
let code = read_xtc_nframes(path.as_ptr(), &mut nframes);
assert!(code as u32 == exdrOK);
}
assert!(nframes == 38, "{:?}", nframes);