The OpenD Programming Language

saturatingConversion

Converts two integer types, returning the min/max of the desired type if the given value is out of range for it.

T
saturatingConversion
(
T
)
(
long value
)

Meta