mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 13:06:24 +02:00
Fix minor code issues flagged by PVS-Studio and reported by alphrixus.
This commit is contained in:
1 parent
6c8dc94691
commit
e51c58716b
11 files changed
+62
-64
No files matched your search
@@ -181,7 +181,7 @@ void WebSocketInputState::ButtonsPress(DebuggerRequest &req) {
|
||||
press.duration = 1;
|
||||
if (!req.ParamU32("duration", &press.duration, false, DebuggerParamType::OPTIONAL))
|
||||
return;
|
||||
if (press.duration < 0)
|
||||
if ((int)press.duration < 0)
|
||||
return req.Fail("Parameter 'duration' must not be negative");
|
||||
const JsonNode *value = req.data.get("ticket");
|
||||
press.ticket = value ? json_stringify(value) : "";
|
||||
|
||||
Reference in new issue
Block a user