0b2d7c2ffc
(num > MAX) ? MAX : num rather than (MAX > num) ? MAX : num Also, make things a little easier to read while I'm here.