apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r892378 - /apr/apr/trunk/file_io/win32/readwrite.c
Date Fri, 18 Dec 2009 20:46:14 GMT
Author: wrowe
Date: Fri Dec 18 20:46:13 2009
New Revision: 892378

URL: http://svn.apache.org/viewvc?rev=892378&view=rev
Log:
This high-offset arg is signed

Modified:
    apr/apr/trunk/file_io/win32/readwrite.c

Modified: apr/apr/trunk/file_io/win32/readwrite.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/file_io/win32/readwrite.c?rev=892378&r1=892377&r2=892378&view=diff
==============================================================================
--- apr/apr/trunk/file_io/win32/readwrite.c (original)
+++ apr/apr/trunk/file_io/win32/readwrite.c Fri Dec 18 20:46:13 2009
@@ -265,8 +265,8 @@
         if (thefile->direction == 0) {
             // Position file pointer for writing at the offset we are logically reading from
             apr_off_t offset = thefile->filePtr - thefile->dataRead + thefile->bufpos;
-            DWORD offlo = (DWORD)offset;
-            DWORD offhi = (DWORD)(offset >> 32);
+            apr_uint32_t offlo = (apr_uint32_t)offset;
+            apr_int32_t  offhi = (apr_int32_t)(offset >> 32);
             if (offset != thefile->filePtr)
                 SetFilePointer(thefile->filehand, offlo, &offhi, FILE_BEGIN);
             thefile->bufpos = thefile->dataRead = 0;



Mime
View raw message