From 739b63735f02434ee8553c75b8cc913203133a4a Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Thu, 17 Jul 2014 17:09:59 +0200 Subject: Fix abs() usage. For long arguments, use labs(). Reviewed-by: Matt Turner Signed-off-by: Thomas Klausner --- src/Text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Text.c b/src/Text.c index b0e7a2c..4ce9675 100644 --- a/src/Text.c +++ b/src/Text.c @@ -2171,7 +2171,7 @@ DoSelection (TextWidget ctx, XawTextPosition pos, Time time, Boolean motion) if (motion) newType = ctx->text.s.type; else { - if ( (abs((long) time - (long) ctx->text.lasttime) < MULTI_CLICK_TIME) && + if ( (labs((long) time - (long) ctx->text.lasttime) < MULTI_CLICK_TIME) && ((pos >= ctx->text.s.left) && (pos <= ctx->text.s.right))) { sarray = ctx->text.sarray; for (;*sarray != XawselectNull && *sarray != ctx->text.s.type; sarray++); -- cgit v1.2.3