From: Joel Brobecker Date: Fri, 9 Jan 2009 10:32:34 +0000 (+0000) Subject: * ser-mingw.c (ser_windows_open): Use proper type when casting X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1be7fe8dbac0ae12d7f50df82640460d1f1579b7;p=binutils-gdb.git * ser-mingw.c (ser_windows_open): Use proper type when casting in call to _open_osfhandle. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 30798995d1f..86564251219 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-01-09 Joel Brobecker + + * ser-mingw.c (ser_windows_open): Use proper type when casting + in call to _open_osfhandle. + 2009-01-09 Kai Tietz * coff-pe-read.c (read_pe_exported_syms): Fix typo. diff --git a/gdb/ser-mingw.c b/gdb/ser-mingw.c index 1d49ad95209..7ed48c4ce95 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;