From 5f0510fba5a7a2b00caa500cc2dfcf2de21c615f Mon Sep 17 00:00:00 2001 From: John Kohl Date: Mon, 12 Feb 1990 08:34:45 +0000 Subject: [PATCH] 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 --- src/include/krb5/wordsize.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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__ */ -- 2.26.2