U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Various fixes to uppsrc
Re: Various fixes to uppsrc [message #31085 is a reply to message #31064] Fri, 04 February 2011 10:43 Go to previous messageGo to previous message
chickenk is currently offline  chickenk
Messages: 171
Registered: May 2007
Location: Grenoble, France
Experienced Member
Another question: can someone explain the line below (CtrlLib/DocEdit.cpp line 325) and try to make it less ambiguous with parentheses ?

if(q >= 0 && q != cursor && delta < 0 == q < cursor && GetCaret(q).y != yy) {...}

We'll see if some opinions diverge about what this code generates... I suppose this is the following :


if(
      (q >= 0) &&
      (q != cursor) &&
      ( (delta < 0) == (q < cursor) ) &&
      (GetCaret(q).y != yy)
   ) {...}

[Updated on: Fri, 04 February 2011 10:51]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GCC warnings patch - mega mix 1 - unused variables and contructor var init order (SVN r2960)
Next Topic: Issues with new stable release 3211
Goto Forum:
  


Current Time: Sun Apr 26 18:19:04 GMT+2 2026

Total time taken to generate the page: 0.02116 seconds