From a7ab34fdb526437a4ecf39b50079b56ff75064ad Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Thu, 11 Jan 1996 00:16:49 +0000 Subject: Take care of a gcc warnign about shufting two far git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7287 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/keytab/file/ChangeLog | 5 +++++ src/lib/krb5/keytab/file/ser_ktf.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src/lib/krb5') diff --git a/src/lib/krb5/keytab/file/ChangeLog b/src/lib/krb5/keytab/file/ChangeLog index de631403fa..c3648e3ef0 100644 --- a/src/lib/krb5/keytab/file/ChangeLog +++ b/src/lib/krb5/keytab/file/ChangeLog @@ -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 * Makefile.in: Remove ##DOS!include of config/windows.in. diff --git a/src/lib/krb5/keytab/file/ser_ktf.c b/src/lib/krb5/keytab/file/ser_ktf.c index 73797a3417..aadc71ee17 100644 --- a/src/lib/krb5/keytab/file/ser_ktf.c +++ b/src/lib/krb5/keytab/file/ser_ktf.c @@ -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); } -- cgit