Quite a few places in cairo uses code like the following: if (a > b) b = a; That code is functionally equivalent to: b = MAX (a, b); Which is a more succinct, readable and less error pone version of the above. So, here is a patch that replaces all instances of the first idiom with the latter.
Created attachment 11923 [details] [review] Use MIN and MAX instead of if statements
But I didn't like the shouting.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.