Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 6, 2008, 1:05:07 AM (16 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/util/Convert.h

    r1837 r1889  
    512512    static bool convert(orxonox::Vector2* output, const std::string& input)
    513513    {
    514         unsigned int opening_parenthesis, closing_parenthesis = input.find(')');
     514        size_t opening_parenthesis, closing_parenthesis = input.find(')');
    515515        if ((opening_parenthesis = input.find('(')) == std::string::npos) { opening_parenthesis = 0; } else { opening_parenthesis++; }
    516516
     
    536536    static bool convert(orxonox::Vector3* output, const std::string& input)
    537537    {
    538         unsigned int opening_parenthesis, closing_parenthesis = input.find(')');
     538        size_t opening_parenthesis, closing_parenthesis = input.find(')');
    539539        if ((opening_parenthesis = input.find('(')) == std::string::npos) { opening_parenthesis = 0; } else { opening_parenthesis++; }
    540540
     
    562562    static bool convert(orxonox::Vector4* output, const std::string& input)
    563563    {
    564         unsigned int opening_parenthesis, closing_parenthesis = input.find(')');
     564        size_t opening_parenthesis, closing_parenthesis = input.find(')');
    565565        if ((opening_parenthesis = input.find('(')) == std::string::npos) { opening_parenthesis = 0; } else { opening_parenthesis++; }
    566566
     
    590590    static bool convert(orxonox::Quaternion* output, const std::string& input)
    591591    {
    592         unsigned int opening_parenthesis, closing_parenthesis = input.find(')');
     592        size_t opening_parenthesis, closing_parenthesis = input.find(')');
    593593        if ((opening_parenthesis = input.find('(')) == std::string::npos) { opening_parenthesis = 0; } else { opening_parenthesis++; }
    594594
     
    618618    static bool convert(orxonox::ColourValue* output, const std::string& input)
    619619    {
    620         unsigned int opening_parenthesis, closing_parenthesis = input.find(')');
     620        size_t opening_parenthesis, closing_parenthesis = input.find(')');
    621621        if ((opening_parenthesis = input.find('(')) == std::string::npos) { opening_parenthesis = 0; } else { opening_parenthesis++; }
    622622
Note: See TracChangeset for help on using the changeset viewer.