fix const written as float
This commit is contained in:
parent
796cedbcac
commit
3dfdf1af7b
|
@ -118,7 +118,7 @@ impl Writer {
|
|||
let c = c as i64;
|
||||
let width = width_sign!(c) as u8;
|
||||
|
||||
self.write_op(Op::Const(width, true));
|
||||
self.write_op(Op::Const(width, false));
|
||||
self.buf
|
||||
.write_int::<LE>(c, (4 * (width + 1)) as usize)
|
||||
.map_err(Error::BadWrite)
|
||||
|
|
Loading…
Reference in New Issue