mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-06 00:40:11 +00:00
vm: fix warnings and add narrow cast for u64 ptrs
This commit is contained in:
parent
24c246a9f6
commit
e82bef425f
@ -175,10 +175,10 @@ namespace vm
|
||||
struct cast_impl<u32>
|
||||
{
|
||||
static vm::addr_t cast(u32 addr,
|
||||
u32 line,
|
||||
u32 col,
|
||||
const char* file,
|
||||
const char* func)
|
||||
u32,
|
||||
u32,
|
||||
const char*,
|
||||
const char*)
|
||||
{
|
||||
return static_cast<vm::addr_t>(addr);
|
||||
}
|
||||
@ -193,7 +193,7 @@ namespace vm
|
||||
const char* file,
|
||||
const char* func)
|
||||
{
|
||||
return static_cast<vm::addr_t>(static_cast<u32>(addr));
|
||||
return static_cast<vm::addr_t>(::narrow<u32>(addr, line, col, file, func));
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user