[gtk/wip.win32.fixes: 494/494] tests/testmountoperation.c: Fix build on Windows




commit 7e7e3349aba554e0bddae00356817ab2a5eb69f4
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Oct 12 17:08:43 2022 +0800

    tests/testmountoperation.c: Fix build on Windows
    
    Sadly, we can't just use an interger for a GPid on Windows, so just cast
    it.  Sounds silly for non-Windows, but that's life...

 tests/testmountoperation.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/testmountoperation.c b/tests/testmountoperation.c
index 4c908a7c64..a255e644ef 100644
--- a/tests/testmountoperation.c
+++ b/tests/testmountoperation.c
@@ -148,11 +148,11 @@ main (int argc, char *argv[])
       GPid pid;
 
       pids = g_array_new (TRUE, FALSE, sizeof (GPid));
-      pid = 1000;
+      pid = (GPid)1000;
       g_array_append_val (pids, pid);
-      pid = 2000;
+      pid = (GPid)2000;
       g_array_append_val (pids, pid);
-      pid = 3000;
+      pid = (GPid)3000;
       g_array_append_val (pids, pid);
 
       g_signal_emit_by_name (op, "show-processes", "Foo\nbar", pids, choices);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]