summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Klausner <wiz@NetBSD.org>2014-07-17 17:09:59 +0200
committerThomas Klausner <wiz@NetBSD.org>2014-07-17 17:09:59 +0200
commit739b63735f02434ee8553c75b8cc913203133a4a (patch)
tree2fd18478ee390c565751754c0a443395f9cae88c /src
parent8eeaac849fbbd16408a84b9a583fbbe7385fe22e (diff)
Fix abs() usage.
For long arguments, use labs(). Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
Diffstat (limited to 'src')
-rw-r--r--src/Text.c2
1 files changed, 1 insertions, 1 deletions
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++);