You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by nd...@apache.org on 2010/05/29 20:10:33 UTC
svn commit: r949431 -
/harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/windows/OSFileSystemWin32.c
Author: ndbeyer
Date: Sat May 29 18:10:32 2010
New Revision: 949431
URL: http://svn.apache.org/viewvc?rev=949431&view=rev
Log:
Apply patch for HARMONY-6528 [classlib]compile errors using vs2008 on windows 32bit
Modified:
harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/windows/OSFileSystemWin32.c
Modified: harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/windows/OSFileSystemWin32.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/windows/OSFileSystemWin32.c?rev=949431&r1=949430&r2=949431&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/windows/OSFileSystemWin32.c (original)
+++ harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/windows/OSFileSystemWin32.c Sat May 29 18:10:32 2010
@@ -307,7 +307,7 @@ JNIEXPORT jlong JNICALL Java_org_apache_
BY_HANDLE_FILE_INFORMATION info;
HANDLE hfile = (HANDLE)fd;
if (GetFileInformationByHandle(hfile, (LPBY_HANDLE_FILE_INFORMATION) &info)) {
- return (jlong) ((info.nFileSizeHigh<<0x20) + info.nFileSizeLow);
+ return (jlong) (((DWORDLONG)info.nFileSizeHigh<<0x20) + info.nFileSizeLow);
} else {
return (jlong)-1;
}