Message 1 of 8
Signed / unsigned comparision
Not applicable
12-17-2009
03:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Im in the process of converting my app to 64bit, and was wondering what is the best practise way of doing the following;
{color:#3366ff}someMethod(int index){color}
{color:#3366ff} if (index < acdbPolyLine.numVerts()){color}
{color:#3366ff} //do something
}{color}
where 'index' is a signed integer and NumVerts() returns an unsigned integer.
a similar situation being
{color:#3366ff}for (int index = 0; index < numVerts(); index++){color}
is an (int) cast on numVerts() sufficient?
Thanks