fix endianness of sprintf floats. i thought i checked this, but i guess not
This commit is contained in:
parent
4b46bc60bb
commit
4de1d244ce
|
@ -244,9 +244,9 @@ namespace BizHawk.Common
|
||||||
static double GetDouble(IntPtr first, IntPtr second)
|
static double GetDouble(IntPtr first, IntPtr second)
|
||||||
{
|
{
|
||||||
var ms = new MemoryStream(8);
|
var ms = new MemoryStream(8);
|
||||||
var bw = new BinaryWriter(ms);
|
var bw = new BinaryWriter(ms);
|
||||||
|
bw.Write(first.ToInt32());
|
||||||
bw.Write(second.ToInt32());
|
bw.Write(second.ToInt32());
|
||||||
bw.Write(first.ToInt32());
|
|
||||||
bw.Flush();
|
bw.Flush();
|
||||||
ms.Position = 0;
|
ms.Position = 0;
|
||||||
var br = new BinaryReader(ms);
|
var br = new BinaryReader(ms);
|
||||||
|
|
Loading…
Reference in New Issue