From: Stefan Metzmacher Date: Wed, 15 Jul 2009 19:02:42 +0000 (+0200) Subject: s3:smbd: try to fix a compiler warning on i386 : left shift count >= width of type X-Git-Tag: tevent-0.9.8~710^2~118 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=377a97579bc9b733c5a6363c71498e2ecf894f02;p=samba.git s3:smbd: try to fix a compiler warning on i386 : left shift count >= width of type metze --- diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index d1f2e7ff18a..06536f9e217 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -4105,7 +4105,7 @@ NTSTATUS smbd_do_qfilepathinfo(connection_struct *conn, I think this causes us to fail the IFSKIT BasicFileInformationTest. -tpot */ file_index = ((sbuf.st_ex_ino) & UINT32_MAX); /* FileIndexLow */ - file_index |= ((sbuf.st_ex_dev) & UINT32_MAX) << 32; /* FileIndexHigh */ + file_index |= ((uint64_t)((sbuf.st_ex_dev) & UINT32_MAX)) << 32; /* FileIndexHigh */ switch (info_level) { case SMB_INFO_STANDARD: