Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Various fixes to uppsrc
Re: Various fixes to uppsrc [message #31093 is a reply to message #31085] Fri, 04 February 2011 14:55 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
chickenk wrote on Fri, 04 February 2011 04:43

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)
   ) {...}


Yes. I have remade it to

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


Mirek
 
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: Sat May 04 10:20:50 CEST 2024

Total time taken to generate the page: 0.01865 seconds