Author: mturk Date: Tue Jun 30 10:41:04 2009 New Revision: 789666 URL: http://svn.apache.org/viewvc?rev=789666&view=rev Log: Shift by 30 bits. We can have overflow from both volume and indexLow
Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c?rev=789666&r1=789665&r2=789666&view=diff ============================================================================== --- commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c (original) +++ commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c Tue Jun 30 10:41:04 2009 @@ -801,7 +801,7 @@ if (fh != INVALID_HANDLE_VALUE) { BY_HANDLE_FILE_INFORMATION fi; if (GetFileInformationByHandle(fh, &fi)) { - rv = (((jlong)fi.nFileIndexHigh + (jlong)fi.dwVolumeSerialNumber) << 31) + fi.nFileIndexLow; + rv = (((jlong)fi.nFileIndexHigh + (jlong)fi.dwVolumeSerialNumber) << 30) + fi.nFileIndexLow; ex = 0; } else