]> source.dussan.org Git - tigervnc.git/commitdiff
MinGW tweak: Mark gigantic constants as longlong.
authorPeter Åstrand <astrand@cendio.se>
Tue, 9 Dec 2008 12:46:47 +0000 (12:46 +0000)
committerPeter Åstrand <astrand@cendio.se>
Tue, 9 Dec 2008 12:46:47 +0000 (12:46 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3342 3789f03b-4d11-0410-bbf8-ca57d06f2519

win/rfb_win32/FolderManager.cxx
win/rfb_win32/SFileTransferWin32.cxx

index a2fa08d3e74a50459959dd3bff66f5ebd6853822..3ab49a1cce071685aaf90053e85071dc84333ba8 100644 (file)
@@ -230,14 +230,14 @@ FolderManager::getTime70(FILETIME ftime)
   LARGE_INTEGER uli;
   uli.LowPart = ftime.dwLowDateTime;
   uli.HighPart = ftime.dwHighDateTime;
-  uli.QuadPart = (uli.QuadPart - 116444736000000000) / 10000000;
+  uli.QuadPart = (uli.QuadPart - 116444736000000000LL) / 10000000;
   return uli.LowPart;
 }
 
 void 
 FolderManager::getFiletime(unsigned int time70, FILETIME *pftime)
 {
-  LONGLONG ll = Int32x32To64(time70, 10000000) + 116444736000000000;
+  LONGLONG ll = Int32x32To64(time70, 10000000) + 116444736000000000LL;
   pftime->dwLowDateTime = (DWORD) ll;
   pftime->dwHighDateTime = (DWORD) (ll >> 32);
 }
@@ -276,4 +276,4 @@ FolderManager::getDirSize(char *pFullPath, DWORD64 *dirSize)
   
   *dirSize = dirFileSize64;
   return true;
-}
\ No newline at end of file
+}
index 0894d73b360268b4f588f4ccc125ec4bf98df6e5..d07da47f7125193d18ec2d0bbd174115f5c292be 100644 (file)
@@ -116,7 +116,7 @@ SFileTransferWin32::getDirSize(char *pszName, unsigned short *pHighSize16,
 
   if (!fm.getDirSize(pszName, &dw64DirSize)) return false;
 
-  if (dw64DirSize & 0xFFFF000000000000) return false;
+  if (dw64DirSize & 0xFFFF000000000000LL) return false;
 
   *pHighSize16 = (unsigned short)((dw64DirSize >> 32) & 0xFFFF);
   *pLowSize32 = (unsigned int)(dw64DirSize & 0xFFFFFFFF);