harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r949431 - /harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/windows/OSFileSystemWin32.c
Date Sat, 29 May 2010 18:10:33 GMT
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;
   }



Mime
View raw message