From: John Kohl Date: Mon, 12 Feb 1990 08:34:45 +0000 (+0000) Subject: change KRB5_INT32_MIN to a strange form for correctness X-Git-Tag: krb5-1.0-alpha2~1043 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5f0510fba5a7a2b00caa500cc2dfcf2de21c615f;p=krb5.git change KRB5_INT32_MIN to a strange form for correctness git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@341 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/krb5/wordsize.h b/src/include/krb5/wordsize.h index 37cd10d3b..8feed4e65 100644 --- a/src/include/krb5/wordsize.h +++ b/src/include/krb5/wordsize.h @@ -37,6 +37,8 @@ typedef unsigned char krb5_octet; #undef __OK #define KRB5_INT32_MAX 2147483647 -#define KRB5_INT32_MIN (-2147483648) +/* this strange form is necessary since - is a unary operator, not a sign + indicator */ +#define KRB5_INT32_MIN (-KRB5_INT32_MAX-1) #endif /* __KRB5_WORDSIZE__ */