clearly tells us: kern_rate.c:98: warning: assuming signed overflow does not occur when assuming that (X + c) > X is always true Check value against INT_MAX instead. Also, for good measure throw in a __predict() to flag the assumed common case.