mirror of
https://github.com/ksherlock/mpw.git
synced 2024-06-17 15:29:38 +00:00
fix assert text
This commit is contained in:
parent
f2dc249614
commit
f17839cc7e
|
@ -253,7 +253,7 @@ using std::to_string;
|
||||||
template<>
|
template<>
|
||||||
float readnum<float>(uint32_t address)
|
float readnum<float>(uint32_t address)
|
||||||
{
|
{
|
||||||
static_assert(sizeof(float) == 4, "unexpected long double size");
|
static_assert(sizeof(float) == 4, "unexpected float size");
|
||||||
|
|
||||||
uint32_t x = memoryReadLong(address);
|
uint32_t x = memoryReadLong(address);
|
||||||
return *((float *)&x);
|
return *((float *)&x);
|
||||||
|
@ -262,7 +262,7 @@ using std::to_string;
|
||||||
template<>
|
template<>
|
||||||
double readnum<double>(uint32_t address)
|
double readnum<double>(uint32_t address)
|
||||||
{
|
{
|
||||||
static_assert(sizeof(double) == 8, "unexpected long double size");
|
static_assert(sizeof(double) == 8, "unexpected double size");
|
||||||
|
|
||||||
uint64_t x = memoryReadLongLong(address);
|
uint64_t x = memoryReadLongLong(address);
|
||||||
return *((double *)&x);
|
return *((double *)&x);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user