[glib: 10/11] Fix cast pointer to int warning in gio/tests/socket.c
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 10/11] Fix cast pointer to int warning in gio/tests/socket.c
- Date: Fri, 1 Apr 2022 15:13:33 +0000 (UTC)
commit e372ed3413ff847cb1ba14b731bf8e6f6fb7b66d
Author: Loic Le Page <llepage fluendo com>
Date: Wed Jan 19 21:07:05 2022 +0100
Fix cast pointer to int warning in gio/tests/socket.c
gio/tests/socket.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/tests/socket.c b/gio/tests/socket.c
index 250ec648a4..02605a6dc9 100644
--- a/gio/tests/socket.c
+++ b/gio/tests/socket.c
@@ -1203,7 +1203,7 @@ duplicate_fd (int fd)
return -1;
}
- return (int)newfd;
+ return (int)(gintptr)newfd;
#else
return dup (fd);
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]