You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2009/12/18 21:46:14 UTC

svn commit: r892378 - /apr/apr/trunk/file_io/win32/readwrite.c

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;