apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Plüm, Rüdiger, Vodafone Group <ruediger.pl...@vodafone.com>
Subject RE: Event and atomics, round II
Date Wed, 08 Jan 2014 16:01:27 GMT


From: Yann Ylavic
Sent: Mittwoch, 8. Januar 2014 16:57
To: httpd; apr
Subject: Re: Event and atomics, round II

On Wed, Jan 8, 2014 at 2:03 PM, Jim Jagielski <jim@jagunet.com<mailto:jim@jagunet.com>>
wrote:

On Jan 7, 2014, at 3:15 PM, Jeff Trawick <trawick@gmail.com<mailto:trawick@gmail.com>>
wrote:
>
> +1 for APR trunk, +0.9 for future APR 1.6.x, -0.9 for APR 1.5.x...
>
> alternate opinions?
>
As far as I know, C guarantees that

        if (a)

is the same as

        if (a != 0)

So I'm unsure of the need for this patch.

The real question is, for an "unsigned a != 0", can "(int)a" become 0 after an implicit (undefined)
conversion?
IMHO: No.
Regards
Rüdiger

Regards,
Yann.

Mime
View raw message