mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-13 05:20:44 +00:00
* ser-mingw.c (ser_windows_open): Use proper type when casting
in call to _open_osfhandle.
This commit is contained in:
parent
1dac1b4733
commit
1be7fe8dba
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user