projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc35172
)
change KRB5_INT32_MIN to a strange form for correctness
author
John Kohl
<jtkohl@mit.edu>
Mon, 12 Feb 1990 08:34:45 +0000
(08:34 +0000)
committer
John Kohl
<jtkohl@mit.edu>
Mon, 12 Feb 1990 08:34:45 +0000
(08:34 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@341
dc483132
-0cff-0310-8789-
dd5450dbe970
src/include/krb5/wordsize.h
patch
|
blob
|
history
diff --git
a/src/include/krb5/wordsize.h
b/src/include/krb5/wordsize.h
index 37cd10d3bc08b932c8801165389fceccf06686c4..8feed4e65acd563a2465f81b80b36fcae5b8b9f7 100644
(file)
--- 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__ */