diff options
-rw-r--r-- | win/rfb_win32/SFileTransferWin32.cxx | 4 |
1 files 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; } |