mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
Fix gcc warning in bit_cast
This commit is contained in:
parent
693d54553c
commit
aaf1b4c668
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ namespace std
|
|||
{
|
||||
static_assert(sizeof(To) == sizeof(From), "std::bit_cast<>: incompatible type size");
|
||||
|
||||
To result;
|
||||
To result{};
|
||||
std::memcpy(&result, &from, sizeof(From));
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue