Fixed88 is byte aligned

This commit is contained in:
Mike Welsh 2016-09-07 23:52:20 -07:00
parent 26d9158fb4
commit 80c98ef6b1
1 changed files with 1 additions and 0 deletions

View File

@ -111,6 +111,7 @@ impl<W: Write> Writer<W> {
}
fn write_fixed88(&mut self, n: f32) -> Result<()> {
try!(self.flush_bits());
self.output.write_i16::<LittleEndian>((n * 256f32) as i16)
}