src/file_io.c : Use intptr_t instead of long for return value of _get_osfhandle.

This commit is contained in:
Erik de Castro Lopo 2008-09-29 17:57:43 +10:00
parent 8ed24c2c70
commit 548daca9b7
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-09-29 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* src/file_io.c
Use intptr_t instead of long for return value of _get_osfhandle.
2008-09-25 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* examples/*

View File

@ -862,7 +862,7 @@ psf_set_stdio (SF_PRIVATE *psf, int mode)
/* USE_WINDOWS_API */ void
psf_set_file (SF_PRIVATE *psf, int fd)
{ HANDLE handle ;
long osfhandle ;
intptr_t osfhandle ;
osfhandle = _get_osfhandle (fd) ;
handle = (HANDLE) osfhandle ;