mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 14:01:25 +12: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");
|
static_assert(sizeof(To) == sizeof(From), "std::bit_cast<>: incompatible type size");
|
||||||
|
|
||||||
To result;
|
To result{};
|
||||||
std::memcpy(&result, &from, sizeof(From));
|
std::memcpy(&result, &from, sizeof(From));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue