[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: regex backward search broken

From: Paul Eggert
Subject: Re: regex backward search broken
Date: Fri, 5 Aug 2016 15:03:59 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1

On 08/05/2016 12:29 PM, Todd Lewis wrote:
The diff below works around the problem, at least for re_search(), which
is the only regex function I'm using. The problem seems to be mixing
signed math -- 'range' is negative for backward searches -- with unsigned
"Idx"-typed variables 'length' and 'start'. "Idx" is an unsigned type when

Thanks, but Idx is now always a signed type, as of Gnulib commit f97745b0f632a9ddae3e48cec083dd71099d37c2 dated 2016-02-19. I guess you're using an older version of Gnulib. Does the current Gnulib version fix your bug in a different way?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]