Module Name: src Committed By: pooka Date: Wed Dec 12 11:10:56 UTC 2012
Modified Files: src/sys/kern: kern_rate.c Log Message: Signed overflow is undefined behavior, and one version of gcc 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. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/kern/kern_rate.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.