Hacker News new | ask | show | jobs
by Dylan16807 1329 days ago
For this situation you want it to saturate. Clamp the value between int_min and int_max.