mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 18:24:05 +02:00
fix inbounds check for bit coord
This commit is contained in:
parent
60f23647c5
commit
abfdbdcd9d
1 changed files with 1 additions and 1 deletions
|
|
@ -1271,7 +1271,7 @@ pub fn write_bit_coord_mp(
|
|||
low_precision: bool,
|
||||
) -> ReadResult<()> {
|
||||
let abs = val.abs();
|
||||
let in_bounds = (abs as u32) <= 2u32.pow(10);
|
||||
let in_bounds = (abs as u32) < (1 << 11);
|
||||
let has_int_val = abs >= 1.0;
|
||||
in_bounds.write(stream)?;
|
||||
has_int_val.write(stream)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue