diff options
author | Joel Brobecker <brobecker@gnat.com> | 2009-01-09 10:32:34 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2009-01-09 10:32:34 +0000 |
commit | 1be7fe8dbac0ae12d7f50df82640460d1f1579b7 (patch) | |
tree | ff917d50de164e1379a197e2c63934b7560c3e2c | |
parent | 1dac1b473366868ce10123ee6c4c0acbb284be2c (diff) | |
download | fsf-binutils-gdb-1be7fe8dbac0ae12d7f50df82640460d1f1579b7.zip fsf-binutils-gdb-1be7fe8dbac0ae12d7f50df82640460d1f1579b7.tar.gz fsf-binutils-gdb-1be7fe8dbac0ae12d7f50df82640460d1f1579b7.tar.bz2 |
* ser-mingw.c (ser_windows_open): Use proper type when casting
in call to _open_osfhandle.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/ser-mingw.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3079899..8656425 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/ser-mingw.c b/gdb/ser-mingw.c index 1d49ad9..7ed48c4 100644 --- a/gdb/ser-mingw.c +++ b/gdb/ser-mingw.c @@ -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; |