* ser-mingw.c (ser_windows_open): Use proper type when casting
authorJoel Brobecker <brobecker@gnat.com>
Fri, 9 Jan 2009 10:32:34 +0000 (10:32 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Fri, 9 Jan 2009 10:32:34 +0000 (10:32 +0000)
        in call to _open_osfhandle.

gdb/ChangeLog
gdb/ser-mingw.c

index 30798995d1fc583ea6d742c5fbd797fc373f7ef7..865642512198edf8cc355983ac8a6d94d63913fa 100644 (file)
@@ -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.
index 1d49ad95209ef119bf3fd9567fdbf3c8e744c2e7..7ed48c4ce95ec29bd3741187be9b9e7db425b3f6 100644 (file)
@@ -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;