fix endianness of sprintf floats. i thought i checked this, but i guess not

This commit is contained in:
zeromus 2015-11-18 18:12:05 -06:00
parent 4b46bc60bb
commit 4de1d244ce
1 changed files with 2 additions and 2 deletions
BizHawk.Common

View File

@ -244,9 +244,9 @@ namespace BizHawk.Common
static double GetDouble(IntPtr first, IntPtr second)
{
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(first.ToInt32());
bw.Flush();
ms.Position = 0;
var br = new BinaryReader(ms);