Skip to main content

u16_cast_short

Function u16_cast_short 

Source
pub(crate) const fn u16_cast_short(x: u16) -> c_short
Expand description

Used to avoid overflowing_literals when the value is in-range for the unsigned number but out-of-range for signed.