krb5.hin: Added support for KRB5_INT16_MAX, which tells us the
authorTheodore Tso <tytso@mit.edu>
Fri, 5 Jan 1996 03:50:32 +0000 (03:50 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 5 Jan 1996 03:50:32 +0000 (03:50 +0000)
limitations of using 16 bit ints.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7278 dc483132-0cff-0310-8789-dd5450dbe970

src/include/ChangeLog
src/include/krb5.hin

index a9d7e60a9370bf4440352f1526026ab4c7960a7c..721fa1e8f997debad5a6a17311e639710f541457 100644 (file)
@@ -1,3 +1,8 @@
+Thu Jan  4 22:49:13 1996  Theodore Y. Ts'o  <tytso@dcl>
+
+       * krb5.hin: Added support for KRB5_INT16_MAX, which tells us the
+               limitations of using 16 bit ints.
+
 Sun Nov 26 19:23:35 1995  Tom Yu  <tlyu@dragons-lair.MIT.EDU>
 
        * k5-int.h: Ultrix is broken.  Hacked around by redefining the
index 314c624e079421b4cb1ce5e7a8aa1eca53272abd..bee452c4c71265e4c52c2256e9b3ce7a4fee10bf 100644 (file)
@@ -135,6 +135,11 @@ typedef    unsigned short  krb5_ui_4;
    indicator */
 #define KRB5_INT32_MIN (-KRB5_INT32_MAX-1)
 
+#define KRB5_INT16_MAX 65535   
+/* this strange form is necessary since - is a unary operator, not a sign
+   indicator */
+#define KRB5_INT16_MIN (-KRB5_INT16_MAX-1)
+
 /*
  * end wordsize.h
  */