fix const written as float

This commit is contained in:
mos 2024-07-27 22:28:26 +02:00
parent 796cedbcac
commit 3dfdf1af7b
1 changed files with 1 additions and 1 deletions

View File

@ -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)