mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-09 16:35:13 +00:00
fix some warnings
This commit is contained in:
parent
efcb46658b
commit
0559e929d4
8 changed files with 11 additions and 10 deletions
|
|
@ -318,7 +318,7 @@ std::shared_ptr<ds3_pad_handler::ds3_device> ds3_pad_handler::get_device(const s
|
|||
|
||||
int pad_number = std::stoi(padId.substr(pos + 9));
|
||||
if (pad_number > 0 && pad_number <= controllers.size())
|
||||
return controllers[pad_number - 1];
|
||||
return controllers[static_cast<size_t>(pad_number) - 1];
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue