summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2022-10-12 17:08:43 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2022-10-17 12:36:17 +0800
commit1a5a65acd034898d10060b2809336012ec55e0ea (patch)
tree78f002014dd2901b38ced22819429dfa9226b73a /tests
parent6f5d18a9f5c5ce28ed3bed98365967565dfa8b94 (diff)
downloadgtk+-1a5a65acd034898d10060b2809336012ec55e0ea.tar.gz
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...
Diffstat (limited to 'tests')
-rw-r--r--tests/testmountoperation.c6
1 files 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);