]> source.dussan.org Git - tigervnc.git/commitdiff
Eliminated two compilation warnings.
authorConstantin Kaplinsky <const@tightvnc.com>
Wed, 6 Sep 2006 09:24:42 +0000 (09:24 +0000)
committerConstantin Kaplinsky <const@tightvnc.com>
Wed, 6 Sep 2006 09:24:42 +0000 (09:24 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@648 3789f03b-4d11-0410-bbf8-ca57d06f2519

win/rfb_win32/SFileTransferWin32.cxx

index 5aea41266b74fda576e282b036dd0deefcb2cac4..0894d73b360268b4f588f4ccc125ec4bf98df6e5 100644 (file)
@@ -118,8 +118,8 @@ SFileTransferWin32::getDirSize(char *pszName, unsigned short *pHighSize16,
 
   if (dw64DirSize & 0xFFFF000000000000) return false;
 
-  *pHighSize16 = ((dw64DirSize & 0x0000FFFF00000000) >> 32);
-  *pLowSize32 = (dw64DirSize & 0x00000000FFFFFFFF);
+  *pHighSize16 = (unsigned short)((dw64DirSize >> 32) & 0xFFFF);
+  *pLowSize32 = (unsigned int)(dw64DirSize & 0xFFFFFFFF);
 
   return true;
 }