Skip to content

Commit 90461e6

Browse files
authored
Fix type for string index
Fixes warnings and probably incorrectly working code as unsigned int cannot be compared to string::npos
1 parent 011e17b commit 90461e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xmoto/XMKey.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ XMKey::XMKey(std::string *i_joyId, Uint8 i_joyAxis, Sint16 i_joyAxisValue) {
9696
}
9797

9898
XMKey::XMKey(const std::string &i_key, bool i_basicMode) {
99-
unsigned int pos;
99+
size_t pos;
100100
std::string v_current, v_rest;
101101

102102
m_repetition = 1;

0 commit comments

Comments
 (0)