Closed cospectrum closed 4 months ago
Someone can create an image with dim > i32::MAX as u32 and dim as i32 will be negative.
dim > i32::MAX as u32
dim as i32
I checked, there is an assert!(min <= max) in i32::clamp below. But you can still merge, so that readers will understand that this is important.
assert!(min <= max)
i32::clamp
Someday I will write proptests, but not today!
Thanks
Someone can create an image with
dim > i32::MAX as u32
anddim as i32
will be negative.