bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH] posixtm: avoid compiler warning in a better way


From: Paul Eggert
Subject: Re: [PATCH] posixtm: avoid compiler warning in a better way
Date: Wed, 10 Dec 2014 00:01:05 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

Thien-Thi Nguyen wrote:
    +      dot = strchr (s, '.');

Can we use ‘memchr (s, '.', s_len)’ here?

We could, but why bother? The strchr call is easier to understand and makes for less machine code.



reply via email to

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