From: Constantin Kaplinsky Date: Wed, 6 Sep 2006 09:24:42 +0000 (+0000) Subject: Eliminated two compilation warnings. X-Git-Tag: v0.0.90~384^2~235 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f167ddbeccd7a44147e1f0a1ed5658000f006ef5;p=tigervnc.git Eliminated two compilation warnings. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@648 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- diff --git a/win/rfb_win32/SFileTransferWin32.cxx b/win/rfb_win32/SFileTransferWin32.cxx index 5aea4126..0894d73b 100644 --- a/win/rfb_win32/SFileTransferWin32.cxx +++ b/win/rfb_win32/SFileTransferWin32.cxx @@ -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; }