diff options
author | Thomas Klausner <wiz@NetBSD.org> | 2014-07-17 17:09:59 +0200 |
---|---|---|
committer | Thomas Klausner <wiz@NetBSD.org> | 2014-07-17 17:09:59 +0200 |
commit | 739b63735f02434ee8553c75b8cc913203133a4a (patch) | |
tree | 2fd18478ee390c565751754c0a443395f9cae88c | |
parent | 8eeaac849fbbd16408a84b9a583fbbe7385fe22e (diff) |
Fix abs() usage.
For long arguments, use labs().
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
-rw-r--r-- | src/Text.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++); |