-LRN: ino diff
authorChristian Grothoff <christian@grothoff.org>
Sat, 31 Dec 2011 19:55:53 +0000 (19:55 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 31 Dec 2011 19:55:53 +0000 (19:55 +0000)
src/util/disk.c

index 2cec160b8be7cd766b798c13c6aad29b5728a51a..dd2c4fb9d24205aaea9815adf875d86e7e5dc10e 100644 (file)
@@ -362,7 +362,7 @@ GNUNET_DISK_file_get_identifiers (const char *filename, uint64_t * dev,
   if (succ)
   {
     *dev = info.dwVolumeSerialNumber;
-    *ino = ((info.nFileIndexHigh << sizeof (DWORD)) | info.nFileIndexLow);
+    *ino = ((((uint64_t) info.nFileIndexHigh) << (sizeof (DWORD) * 8)) | info.nFileIndexLow);
     return GNUNET_OK;
   }
   else