Skip to content

Commit

Permalink
Fix type for string index
Browse files Browse the repository at this point in the history
Fixes warnings and probably incorrectly working code as unsigned int cannot be compared to string::npos
  • Loading branch information
AMDmi3 committed Jun 2, 2020
1 parent 011e17b commit 90461e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xmoto/XMKey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ XMKey::XMKey(std::string *i_joyId, Uint8 i_joyAxis, Sint16 i_joyAxisValue) {
}

XMKey::XMKey(const std::string &i_key, bool i_basicMode) {
unsigned int pos;
size_t pos;
std::string v_current, v_rest;

m_repetition = 1;
Expand Down

0 comments on commit 90461e6

Please sign in to comment.