Subject: Re: bug#2844: infinite loop in boyer_moore()

From: Andreas Schwab <[email-masked]>
Date: Thu, 02 Apr 2009 09:49:54 +0200

Alexandre Oliva <[email-masked]> writes:

> I suppose checking that
>
>   (EMACS_INT)(cursor + 20000) > (EMACS_INT)(cursor)
>
> would also be necessary before choosing the EMACS_INT variant of the loop.

That wouldn't help, the compiler will optimize that to true.

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."