For long arguments, use labs(). From Jörg Sonnenberger <[email protected]>
Signed-off-by: Thomas Klausner <[email protected]> --- src/Text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Text.c b/src/Text.c index a1ae74a..8100122 100644 --- a/src/Text.c +++ b/src/Text.c @@ -2837,7 +2837,7 @@ DoSelection(TextWidget ctx, XawTextPosition pos, Time time, Bool 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; -- 1.9.0 _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
