<div>There is no side effects. It's just an 'offset to self' calculation.<br/>
<br/>
--<br/>
Max<br/><br/>-----Original Message-----<br/>From: Andrew Clayton <andrew@digital-domain.net><br/>To: Alejandro Colomar <alx.manpages@gmail.com><br/>Cc: unit@nginx.org<br/>Sent: чт, 16 июн. 2022 20:43<br/>Subject: Re: [PATCH 06/11] Sptr: avoided potentially undefined behaviour.<br/><br/></div>On Thu, 16 Jun 2022 17:32:22 +0200
<br/>
Alejandro Colomar <<a href="mailto:alx.manpages@gmail.com">alx.manpages@gmail.com</a>> wrote:
<br/>
<br/>
> Hmmm, AFAIR, `u.a = u.b + 1;` is fine, since the = creates a sequence
<br/>
> point, isn't it?
<br/>
>
<br/>
> <<a href="https://stackoverflow.com/a/33291213/6872717">https://stackoverflow.com/a/33291213/6872717</a>>
<br/>
<br/>
So we're saying that
<br/>
<br/>
6.5.16 (p3):
<br/>
<br/>
[...] The side effect of updating the stored value of the left operand
<br/>
is sequenced after the value computations of the left and right operands.
<br/>
<br/>
makes it OK?
<br/>
<br/>
Cheers,
<br/>
Andrew
<br/>
<br/>
<br/>
_______________________________________________
<br/>
unit mailing list -- <a href="mailto:unit@nginx.org">unit@nginx.org</a>
<br/>
To unsubscribe send an email to <a href="mailto:unit-leave@nginx.org">unit-leave@nginx.org</a>
<br/>