]> git.ipfire.org Git - thirdparty/krb5.git/commit
Use consistent types for overflow comparison
authorBen Kaduk <kaduk@mit.edu>
Wed, 27 Jun 2012 20:00:16 +0000 (16:00 -0400)
committerBen Kaduk <kaduk@mit.edu>
Tue, 3 Jul 2012 04:43:45 +0000 (00:43 -0400)
commite7aa25d215a9d4baa95643f2d19e44036e57af72
tree7faf2329d6ee4c196c3e329aef0518b90f1400e3
parentf59478241686d75ece48e8eff6099006cf0bb1b2
Use consistent types for overflow comparison

Unsigned long might not be 32-bits, in which case the overflow check
fails for a 32-bit kdb_sno_t.  Cast from -1 explicitly as a more
robust check.
src/lib/kdb/kdb_log.c