summary refs log tree commit diff
path: root/hurd/getdport.c
diff options
context:
space:
mode:
Diffstat (limited to 'hurd/getdport.c')
-rw-r--r--hurd/getdport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hurd/getdport.c b/hurd/getdport.c
index 884deaa868..2204db2ce3 100644
--- a/hurd/getdport.c
+++ b/hurd/getdport.c
@@ -37,7 +37,7 @@ __getdport (int fd)
     /* Never had a descriptor table.  */
     return EBADF;
 
-  if (fd < 0 || fd > _hurd_init_dtablesize ||
+  if (fd < 0 || (unsigned int) fd > _hurd_init_dtablesize ||
       _hurd_init_dtable[fd] == MACH_PORT_NULL)
     {
       errno = EBADF;