Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 1, 2009, 3:21:28 PM (16 years ago)
Author:
rgrieder
Message:

Found two more unsigned int —> size_t possible 64 bit issues.

Location:
code/branches/presentation/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/core/Language.cc

    r2485 r2560  
    232232            if ((lineString != "") && (lineString.size() > 0))
    233233            {
    234                 unsigned int pos = lineString.find('=');
     234                size_t pos = lineString.find('=');
    235235
    236236                // Check if the length is at least 3 and if there's an entry before and behind the =
     
    278278            if ((lineString != "") && (lineString.size() > 0))
    279279            {
    280                 unsigned int pos = lineString.find('=');
     280                size_t pos = lineString.find('=');
    281281
    282282                // Check if the length is at least 3 and if there's an entry before and behind the =
  • code/branches/presentation/src/util/String.cc

    r2171 r2560  
    8484    {
    8585        size_t pos1 = 0;
    86         int pos2 = str.size() - 1;
     86        int pos2 = (int)(str.size() - 1);
    8787        for (; pos1 < str.size() && (str[pos1] == ' ' || str[pos1] == '\t' || str[pos1] == '\n'); pos1++);
    8888        for (; pos2 > 0         && (str[pos2] == ' ' || str[pos2] == '\t' || str[pos2] == '\n'); pos2--);
Note: See TracChangeset for help on using the changeset viewer.