View unanswered posts | View active topics It is currently Wed Dec 17, 2014 6:14 pm






Reply to topic  [ 1 post ] 
1.40 RC#2 Display Centered Text bug 
Author Message
Rookie
User avatar

Joined: Thu Jun 26, 2008 11:27 am
Posts: 21
Location: Johannesburg, South Africa
Post 1.40 RC#2 Display Centered Text bug
A small bug with some of the display functions
If you have the following (pointless) code
Code:
for (int ctr = 0;ctr < 4;++ctr)
{
   nxtDisplayTextLine(ctr, "ABC");
   nxtDisplayCenteredTextLine(ctr, "ABC");
}
This won't compile and you get an error on the nxtDisplayCenteredTextLine line
The reason is that parameter nLineNumber is defined as a 'compileconst' in nxtDisplayCenteredTextLine whereas it is a 'const' in nxtDisplayTextLine.
I could not think of any reason for the use of compileconst so I changed it in the RobotCIntrinsics.c file and the sky didn't fall.
I notice that this occurs in several other functions as well.


Wed Aug 13, 2008 3:39 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.