Skip to content

Commit 81b060d

Browse files
committed
fix size_t >> 32
1 parent a2dcb03 commit 81b060d

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
@@ -879,7 +879,11 @@ static int php_stdiop_set_option(php_stream *stream, int option, int value, void
879879
size_t rounded_offset = (range->offset / gran) * gran;
880880
delta = range->offset - rounded_offset;
881881
loffs = (DWORD)rounded_offset;
882+
#ifdef _WIN64
882883
hoffs = (DWORD)(rounded_offset >> 32);
884+
#else
885+
hoffs = 0;
886+
#endif
883887
}
884888

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

0 commit comments

Comments
 (0)