projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f5d18a
)
tests/testmountoperation.c: Fix build on Windows
author
Chun-wei Fan
<fanchunwei@src.gnome.org>
Wed, 12 Oct 2022 09:08:43 +0000
(17:08 +0800)
committer
Chun-wei Fan
<fanchunwei@src.gnome.org>
Mon, 17 Oct 2022 04:36:17 +0000
(12:36 +0800)
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
patch
|
blob
|
history
diff --git
a/tests/testmountoperation.c
b/tests/testmountoperation.c
index 4c908a7c64fd21ea22bce48661fd16c4c51787bf..a255e644ef7ddc9669c0fa2fe54c1626215d5741 100644
(file)
--- 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);