diff options
author | rbuj <[email protected]> | 2021-12-12 11:39:14 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2022-03-11 18:54:19 +0100 |
commit | 5e8097475ba237bc0bc71ad78a7cbdf2d71f7b87 (patch) | |
tree | 178f99b087d96213a85ac3bdff7e01a2cff5cb92 /src/core/place.c | |
parent | 480cc60e3b3596a7fa8e196a08974b6086217bf0 (diff) | |
download | marco-5e8097475ba237bc0bc71ad78a7cbdf2d71f7b87.tar.bz2 marco-5e8097475ba237bc0bc71ad78a7cbdf2d71f7b87.tar.xz |
Fix some -Wfloat-conversion warnings
Diffstat (limited to 'src/core/place.c')
-rw-r--r-- | src/core/place.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/place.c b/src/core/place.c index b3fa6569..1aafff79 100644 --- a/src/core/place.c +++ b/src/core/place.c @@ -46,8 +46,8 @@ northwestcmp (gconstpointer a, gconstpointer b) { MetaWindow *aw = (gpointer) a; MetaWindow *bw = (gpointer) b; - int from_origin_a; - int from_origin_b; + double from_origin_a; + double from_origin_b; int ax, ay, bx, by; /* we're interested in the frame position for cascading, @@ -76,8 +76,8 @@ northwestcmp (gconstpointer a, gconstpointer b) } /* probably there's a fast good-enough-guess we could use here. */ - from_origin_a = sqrt (ax * ax + ay * ay); - from_origin_b = sqrt (bx * bx + by * by); + from_origin_a = sqrt ((double) (ax * ax + ay * ay)); + from_origin_b = sqrt ((double) (bx * bx + by * by)); if (from_origin_a < from_origin_b) return -1; |