From owner-svn-src-all@FreeBSD.ORG Thu Oct 6 04:39:18 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93AAB1065688; Thu, 6 Oct 2011 04:39:18 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 839238FC13; Thu, 6 Oct 2011 04:39:18 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p964dIRm042831; Thu, 6 Oct 2011 04:39:18 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p964dIwT042829; Thu, 6 Oct 2011 04:39:18 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <201110060439.p964dIwT042829@svn.freebsd.org> From: Xin LI Date: Thu, 6 Oct 2011 04:39:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r226047 - head/usr.bin/grep/regex X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Oct 2011 04:39:18 -0000 Author: delphij Date: Thu Oct 6 04:39:18 2011 New Revision: 226047 URL: http://svn.freebsd.org/changeset/base/226047 Log: Fix build on i386 and arm. Tested with: make universe Pointy hat to: delphij Modified: head/usr.bin/grep/regex/tre-fastmatch.c Modified: head/usr.bin/grep/regex/tre-fastmatch.c ============================================================================== --- head/usr.bin/grep/regex/tre-fastmatch.c Wed Oct 5 22:08:17 2011 (r226046) +++ head/usr.bin/grep/regex/tre-fastmatch.c Thu Oct 6 04:39:18 2011 (r226047) @@ -163,7 +163,7 @@ static int fastcmp(const fastmatch_t *fg shift = bc; \ else \ { \ - ts = ((long)u - v < 0) ? 0 : (u - v); \ + ts = (u >= v) ? (u - v) : 0; \ shift = MAX(ts, bc); \ shift = MAX(shift, gs); \ if (shift == gs) \