summaryrefslogtreecommitdiff
path: root/src/wm-tester
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-12-12 11:39:14 +0100
committerraveit65 <[email protected]>2022-03-11 18:54:19 +0100
commit5e8097475ba237bc0bc71ad78a7cbdf2d71f7b87 (patch)
tree178f99b087d96213a85ac3bdff7e01a2cff5cb92 /src/wm-tester
parent480cc60e3b3596a7fa8e196a08974b6086217bf0 (diff)
downloadmarco-5e8097475ba237bc0bc71ad78a7cbdf2d71f7b87.tar.bz2
marco-5e8097475ba237bc0bc71ad78a7cbdf2d71f7b87.tar.xz
Fix some -Wfloat-conversion warnings
Diffstat (limited to 'src/wm-tester')
-rw-r--r--src/wm-tester/test-gravity.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wm-tester/test-gravity.c b/src/wm-tester/test-gravity.c
index cb8512a0..68aad509 100644
--- a/src/wm-tester/test-gravity.c
+++ b/src/wm-tester/test-gravity.c
@@ -83,8 +83,8 @@ calculate_position (int i, int is_doubled, int *x, int *y)
yoff *= 2;
}
- *x = screen_x_fraction[i % 3] * screen_width + xoff;
- *y = screen_y_fraction[i / 3] * screen_height + yoff;
+ *x = (int) (screen_x_fraction[i % 3] * (double) screen_width) + xoff;
+ *y = (int) (screen_y_fraction[i / 3] * (double) screen_height) + yoff;
}
}