mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
types.hpp: implement min_v<>, max_v<>, SignedInt, UnsignedInt, FPInt concepts
Restrict smax to only work with signed values for consistency. Cleanup <climits> includes. Cleanup <limits> includes.
This commit is contained in:
parent
4b239a0b87
commit
2491aad6f2
48 changed files with 190 additions and 168 deletions
|
|
@ -254,7 +254,7 @@ void memory_string_searcher::OnSearch()
|
|||
|
||||
u64 addr_max = addr;
|
||||
|
||||
const u64 end_mem = std::min<u64>(utils::align<u64>(addr + 1, block_size) + 0x1000, UINT32_MAX);
|
||||
const u64 end_mem = std::min<u64>(utils::align<u64>(addr + 1, block_size) + 0x1000, u32{umax});
|
||||
|
||||
// Determine allocation size quickly
|
||||
while (addr_max < end_mem && vm::check_addr(static_cast<u32>(addr_max), vm::page_1m_size))
|
||||
|
|
@ -294,7 +294,7 @@ void memory_string_searcher::OnSearch()
|
|||
// Allow overlapping strings
|
||||
first_char++;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
while (first_char = section.find_first_of(wstr[0], first_char), first_char != umax)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue