<int> -> <s32>

This commit is contained in:
Michael Scire 2019-06-27 20:16:56 -07:00
parent 014f08f6b4
commit 934ff7bbde
2 changed files with 2 additions and 2 deletions

View file

@ -81,7 +81,7 @@ namespace sts::ldr {
}
Result LoaderService::GetProcessModuleInfo(Out<u32> count, OutPointerWithClientSize<ModuleInfo> out, u64 process_id) {
if (out.num_elements > std::numeric_limits<int>::max()) {
if (out.num_elements > std::numeric_limits<s32>::max()) {
return ResultLoaderInvalidSize;
}

View file

@ -520,7 +520,7 @@ namespace sts::ldr {
}
/* Validate size. */
if (file_size > segment->size || file_size > std::numeric_limits<int>::max() || segment->size > std::numeric_limits<int>::max()) {
if (file_size > segment->size || file_size > std::numeric_limits<s32>::max() || segment->size > std::numeric_limits<s32>::max()) {
return ResultLoaderInvalidNso;
}