mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
kernel: svc: Replace -1ULL with 0xFFFFFFFFFFFFFFFF
Resolves the C4146 compiler warning on MSVC.
This commit is contained in:
parent
7f77aafe41
commit
8eabdc058b
|
@ -899,7 +899,7 @@ static ResultCode GetInfo(Core::System& system, u64* result, u64 info_id, Handle
|
||||||
|
|
||||||
// Verify the requested core is valid.
|
// Verify the requested core is valid.
|
||||||
const bool core_valid =
|
const bool core_valid =
|
||||||
(info_sub_id == static_cast<u64>(-1ULL)) ||
|
(info_sub_id == 0xFFFFFFFFFFFFFFFF) ||
|
||||||
(info_sub_id == static_cast<u64>(system.Kernel().CurrentPhysicalCoreIndex()));
|
(info_sub_id == static_cast<u64>(system.Kernel().CurrentPhysicalCoreIndex()));
|
||||||
R_UNLESS(core_valid, ResultInvalidCombination);
|
R_UNLESS(core_valid, ResultInvalidCombination);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue