Use u32 instead of int
fix windows build error
This commit is contained in:
parent
2d2e9208d2
commit
90bda9fee5
1 changed files with 2 additions and 2 deletions
|
@ -258,13 +258,13 @@ void ISettingsServer::GetKeyCodeMapByPort(HLERequestContext& ctx) {
|
||||||
|
|
||||||
if (buffer_size < DEFAULT_MAPPING.size()) {
|
if (buffer_size < DEFAULT_MAPPING.size()) {
|
||||||
IPC::ResponseBuilder rb{ctx, 2};
|
IPC::ResponseBuilder rb{ctx, 2};
|
||||||
rb.Push(Result(-0x3F81)); // Buffer too small
|
rb.Push(Result(static_cast<u32>(-0x3F81))); // Buffer too small
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (port_id > 7) {
|
if (port_id > 7) {
|
||||||
IPC::ResponseBuilder rb{ctx, 2};
|
IPC::ResponseBuilder rb{ctx, 2};
|
||||||
rb.Push(Result(-0x3F82)); // Invalid port
|
rb.Push(Result(static_cast<u32>(-0x3F82))); // Invalid port
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue