aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2009-01-09 10:32:34 +0000
committerJoel Brobecker <brobecker@gnat.com>2009-01-09 10:32:34 +0000
commit1be7fe8dbac0ae12d7f50df82640460d1f1579b7 (patch)
treeff917d50de164e1379a197e2c63934b7560c3e2c
parent1dac1b473366868ce10123ee6c4c0acbb284be2c (diff)
downloadgdb-1be7fe8dbac0ae12d7f50df82640460d1f1579b7.zip
gdb-1be7fe8dbac0ae12d7f50df82640460d1f1579b7.tar.gz
gdb-1be7fe8dbac0ae12d7f50df82640460d1f1579b7.tar.bz2
* ser-mingw.c (ser_windows_open): Use proper type when casting
in call to _open_osfhandle.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/ser-mingw.c2
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;