aboutsummaryrefslogtreecommitdiff
path: root/gdb/ser-mingw.c
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 /gdb/ser-mingw.c
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.
Diffstat (limited to 'gdb/ser-mingw.c')
-rw-r--r--gdb/ser-mingw.c2
1 files changed, 1 insertions, 1 deletions
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;