From: Christophe CURIS Date: Sun, 16 Jun 2013 19:51:01 +0000 (+0200) Subject: wmaker: Changed math on floating point by integer operation X-Git-Tag: wmaker-0.95.5~14 X-Git-Url: https://repo.or.cz/w/wmaker-crm.git/commitdiff_plain/e9764aab71835608054589013957635c0e0616e4 wmaker: Changed math on floating point by integer operation For this case we happen to already have the same variable as integer type, so it is better to use them directly for computation. Please note that the floating point variables do not contain more precision in this use case, otherwise the change would not be transparent. Signed-off-by: Christophe CURIS --- diff --git a/src/misc.c b/src/misc.c index b2f40f6b..4c4eacaf 100644 --- a/src/misc.c +++ b/src/misc.c @@ -190,7 +190,7 @@ void SlideWindows(Window *wins[], int n, int from_x, int from_y, int to_x, int t dx = (float) dx_int; dy = (float) dy_int; - if (fabs(dx) > fabs(dy)) { + if (abs(dx_int) > abs(dy_int)) { dx_is_bigger = 1; }