Skip to content

Commit 9a4155c

Browse files
committed
fix size_t >> 32
1 parent 54de5d9 commit 9a4155c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main/streams/plain_wrapper.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,11 @@ static int php_stdiop_set_option(php_stream *stream, int option, int value, void
849849
size_t rounded_offset = (range->offset / gran) * gran;
850850
delta = range->offset - rounded_offset;
851851
loffs = (DWORD)rounded_offset;
852+
#ifdef _WIN64
852853
hoffs = (DWORD)(rounded_offset >> 32);
854+
#else
855+
hoffs = 0;
856+
#endif
853857
}
854858

855859
/* MapViewOfFile()ing zero bytes would map to the end of the file; match *nix behavior instead */

0 commit comments

Comments
 (0)