Ensure proper initialized returns for emufile read functions.
This commit is contained in:
parent
6f2c0a84f9
commit
25cdc5ade1
|
@ -191,7 +191,7 @@ size_t EMUFILE::read32le(u32* Bufo)
|
||||||
|
|
||||||
u32 EMUFILE::read32le()
|
u32 EMUFILE::read32le()
|
||||||
{
|
{
|
||||||
u32 ret;
|
u32 ret=0;
|
||||||
read32le(&ret);
|
read32le(&ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -230,7 +230,7 @@ size_t EMUFILE::read16le(u16* Bufo)
|
||||||
|
|
||||||
u16 EMUFILE::read16le()
|
u16 EMUFILE::read16le()
|
||||||
{
|
{
|
||||||
u16 ret;
|
u16 ret=0;
|
||||||
read16le(&ret);
|
read16le(&ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -269,14 +269,14 @@ void EMUFILE::writedouble(double val)
|
||||||
|
|
||||||
double EMUFILE::readdouble()
|
double EMUFILE::readdouble()
|
||||||
{
|
{
|
||||||
double temp;
|
double temp=0.0;
|
||||||
readdouble(&temp);
|
readdouble(&temp);
|
||||||
return temp;
|
return temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t EMUFILE::readdouble(double* val)
|
size_t EMUFILE::readdouble(double* val)
|
||||||
{
|
{
|
||||||
u64 temp;
|
u64 temp=0;
|
||||||
size_t ret = read64le(&temp);
|
size_t ret = read64le(&temp);
|
||||||
*val = u64_to_double(temp);
|
*val = u64_to_double(temp);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue