* ser-mingw.c (ser_windows_open): Use proper type when casting

in call to _open_osfhandle.
This commit is contained in:
Joel Brobecker 2009-01-09 10:32:34 +00:00
parent 1dac1b4733
commit 1be7fe8dba
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-01-09 Joel Brobecker <brobecker@adacore.com>
* ser-mingw.c (ser_windows_open): Use proper type when casting
in call to _open_osfhandle.
2009-01-09 Kai Tietz <kai.tietz@onevision.com>
* coff-pe-read.c (read_pe_exported_syms): Fix typo.

View File

@ -61,7 +61,7 @@ ser_windows_open (struct serial *scb, const char *name)
return -1;
}
scb->fd = _open_osfhandle ((long) h, O_RDWR);
scb->fd = _open_osfhandle ((intptr_t) h, O_RDWR);
if (scb->fd < 0)
{
errno = ENOENT;