From f167ddbeccd7a44147e1f0a1ed5658000f006ef5 Mon Sep 17 00:00:00 2001 From: Constantin Kaplinsky Date: Wed, 6 Sep 2006 09:24:42 +0000 Subject: [PATCH] Eliminated two compilation warnings. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@648 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- win/rfb_win32/SFileTransferWin32.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5