--===============1885040691== Content-Type: multipart/alternative; boundary="----=_Part_94150_22975343.1228074963189" ------=_Part_94150_22975343.1228074963189 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Sun, Nov 30, 2008 at 8:49 PM, Johannes Simon wrote: > On Sunday 30 November 2008 01:25:16 Magnus Lundborg wrote: > > This patch fixes six compilation warnings about missing parentheses in > > if statements. > > Hi, > > Are you sure that "a && (b || c)" is equivalent to "a && b || c"? As far as > I > know, it is not ;) But parantheses should be added either way, to make it > clearer. Right && has a higher priority than ||. So the patch is wrong in some cases. :D > > > - Johannes > _______________________________________________ > koffice-devel mailing list > koffice-devel@kde.org > https://mail.kde.org/mailman/listinfo/koffice-devel > ------=_Part_94150_22975343.1228074963189 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

On Sun, Nov 30, 2008 at 8:49 PM, Johannes Simon <johannes.simon@gmail.com> wrote:
On Sunday 30 November 2008 01:25:16 Magnus Lundborg wrote:
> This patch fixes six compilation warnings about missing parentheses in
> if statements.

Hi,

Are you sure that "a && (b || c)" is equivalent to "a && b || c"? As far as I
know, it is not ;) But parantheses should be added either way, to make it
clearer.

Right && has a higher priority than ||. So the patch is wrong in some cases. :D
 


- Johannes
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel

------=_Part_94150_22975343.1228074963189-- --===============1885040691== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ koffice-devel mailing list koffice-devel@kde.org https://mail.kde.org/mailman/listinfo/koffice-devel --===============1885040691==--