From: Christophe CURIS <[email protected]> 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 <[email protected]> --- src/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc.c b/src/misc.c index f7121bb..f21f8b5 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; } -- 1.7.10.4 -- To unsubscribe, send mail to [email protected].
