MySQL Forums
Forum List  »  Falcon

Increment and assign... or the other way around
Posted by: Vincent Van Den Berghe
Date: December 13, 2007 11:51AM

I had to smile when reading RecordLocatorPage.cpp in the 6.0.4-alpha-pb34 release:

void RecordLocatorPage::linkSpaceSlot(int from, int to)
{
VALIDIF(to == 0 || elements[to].spaceAvailable > 0);

if (from < 0)
++from = 0;


++from =0 is zero, of course.
Sometimes, it's the little things....

Options: ReplyQuote


Subject
Written By
Posted
Increment and assign... or the other way around
December 13, 2007 11:51AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.