Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1219 for code/trunk/src/util


Ignore:
Timestamp:
May 2, 2008, 10:44:57 PM (17 years ago)
Author:
rgrieder
Message:

merged input branch back to trunk. Not yet tested on tardis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/util/String.cc

    r1214 r1219  
    6565{
    6666    unsigned int pos1 = 0;
    67     unsigned int pos2 = str.size() - 1;
     67    int pos2 = str.size() - 1;
    6868    for (; pos1 < str.size() && (str[pos1] == ' ' || str[pos1] == '\t' || str[pos1] == '\n'); pos1++);
    69     for (; pos2 >= 0         && (str[pos2] == ' ' || str[pos2] == '\t' || str[pos2] == '\n'); pos2--);
     69    for (; pos2 > 0          && (str[pos2] == ' ' || str[pos2] == '\t' || str[pos2] == '\n'); pos2--);
    7070    return str.substr(pos1, pos2 - pos1 + 1);
    7171}
Note: See TracChangeset for help on using the changeset viewer.