mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-19 15:18:55 +02:00
Fix cast pointer to int warning in gio/tests/socket.c
This commit is contained in:
committed by
Loïc Le Page
parent
7bd79b112d
commit
e372ed3413
@@ -1203,7 +1203,7 @@ duplicate_fd (int fd)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (int)newfd;
|
return (int)(gintptr)newfd;
|
||||||
#else
|
#else
|
||||||
return dup (fd);
|
return dup (fd);
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user