Take care of a gcc warnign about shufting two far
authorEzra Peisach <epeisach@mit.edu>
Thu, 11 Jan 1996 00:16:49 +0000 (00:16 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 11 Jan 1996 00:16:49 +0000 (00:16 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7287 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/keytab/file/ChangeLog
src/lib/krb5/keytab/file/ser_ktf.c

index de631403fa691a53d25a7f53bcf7d9685e357664..c3648e3ef09d02e5513c5eb0146fdcec24b629ff 100644 (file)
@@ -1,3 +1,8 @@
+Fri Jan  5 04:50:41 1996  Ezra Peisach  (epeisach@kangaroo.mit.edu)
+
+       * ser_ktf.c (krb5_ktf_keytab_internalize): Take care of gcc
+               warning under OSF/1.
+
 Fri Oct  6 22:04:15 1995  Theodore Y. Ts'o  <tytso@dcl>
 
        * Makefile.in: Remove ##DOS!include of config/windows.in.
index 73797a34172880e78ad67dca5459dba6fbe3c09c..aadc71ee1711e4856b30ec1b5de4a852fb1da141 100644 (file)
@@ -297,7 +297,7 @@ krb5_ktf_keytab_internalize(kcontext, argp, buffer, lenremain)
 #if    SIZEOF_LONG == 4
                                    fpos = foffbuf[0];
 #else  /* SIZEOF_LONG == 4 */
-                                   fpos = foffbuf[0] | (foffbuf[1] << 32);
+                                   fpos = foffbuf[0] | ((long) foffbuf[1] << 32);
 #endif /* SIZEOF_LONG == 4 */
                                    fseek(KTFILEP(keytab), fpos, SEEK_SET);
                                }