All,
As I was reviewing the recent commits, I was looking at this line of
code:
+ if (num_screens > 0 && n >= 0 && n < num_screens && screens) {
And had to stare at this before I convinced myself the precedence was
correct... Since "<" and ">" take precedence over "&&".
What it says is:
if ((num_screens > 0) && (n >= 0) && (n < num_screens) && (screens))
{
Which seems like it would be what we'd want at that point.
I think we should maybe add the brackets explicitly though? Our code is
littered with this though, so...
It's not just me - recent versions of gcc whine on about this too!
SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14
3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev