Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 6, 2008, 1:05:07 AM (17 years ago)
Author:
landauf
Message:

unsigned int → size_t for std::string related functions
I hope this fixes some problems on 64bit systems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/ConfigFileManager.cc

    r1795 r1889  
    255255            if (!isEmpty(temp) && !isComment(temp))
    256256            {
    257                 unsigned int   pos1 = temp.find('[');
     257                size_t   pos1 = temp.find('[');
    258258                if (pos1 == 0) pos1 = line.find('['); else pos1 = std::string::npos;
    259                 unsigned int   pos2 = line.find(']');
     259                size_t   pos2 = line.find(']');
    260260
    261261                if (pos1 != std::string::npos && pos2 != std::string::npos && pos2 > pos1 + 1)
     
    282282                else
    283283                {
    284                     unsigned int pos1 = line.find('=');
     284                    size_t pos1 = line.find('=');
    285285
    286286                    if (pos1 != std::string::npos && pos1 > 0)
    287287                    {
    288288                        // New entry
    289                         unsigned int pos2 = line.find('[');
    290                         unsigned int pos3 = line.find(']');
    291                         unsigned int commentposition = getNextCommentPosition(line, pos1 + 1);
     289                        size_t pos2 = line.find('[');
     290                        size_t pos3 = line.find(']');
     291                        size_t commentposition = getNextCommentPosition(line, pos1 + 1);
    292292                        while (isBetweenQuotes(line, commentposition))
    293293                        {
Note: See TracChangeset for help on using the changeset viewer.