> >> What follow is the output from the compiler and some > possible solutions > >> (at least when I could guess what is intended), I invite anyone to > >> exercise his/her knowledge of c++ and try find what should be done: > >> > >> Adjuster.cxx: In member function 'virtual void > fltk::Adjuster::draw()': > >> Adjuster.cxx:83: warning: suggest parentheses around arithmetic in > >> operand of '|' > >> > >> !!!!!!!!!!!! what's intended here !!!!!!!!!!!!!!! > >> from: Flags flags = this->flags() & > ~(STATE|PUSHED|HIGHLIGHT) | OUTPUT; > >> to: Flags flags = this->flags() & ( (~(STATE|PUSHED|HIGHLIGHT)) | > >> OUTPUT );
I doubt it. As you surely know, the "&" operator takes precedence over the "|" operator in C, so I would imagine that the original line maps to: Flags flags = (this->flags() & ~(STATE|PUSHED|HIGHLIGHT)) | OUTPUT; Which makes more sense, if you think about what is being done there, does it not? -- Ian 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 mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

