Fixed88 is byte aligned
This commit is contained in:
parent
26d9158fb4
commit
80c98ef6b1
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue