mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 23:58:59 +00:00
Replace Common::BitCast with std::bit_cast
This commit is contained in:
parent
57c890d4fc
commit
fbbfea8e8e
36 changed files with 177 additions and 215 deletions
|
@ -4,6 +4,7 @@
|
|||
#include "DolphinQt/FIFO/FIFOAnalyzer.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <bit>
|
||||
|
||||
#include <QGroupBox>
|
||||
#include <QHBoxLayout>
|
||||
|
@ -646,7 +647,7 @@ public:
|
|||
}
|
||||
if (format == ComponentFormat::Float)
|
||||
{
|
||||
const float value = Common::BitCast<float>(Common::swap32(&vertex_data[i]));
|
||||
const float value = std::bit_cast<float>(Common::swap32(&vertex_data[i]));
|
||||
text += QStringLiteral(" (%1)").arg(value);
|
||||
}
|
||||
i += component_size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue