util: fix ByteBufferToIntBuffer

This commit is contained in:
saxxonpike 2012-11-20 06:34:38 +00:00
parent 5df406ddbf
commit 00469301e5
1 changed files with 3 additions and 3 deletions

View File

@ -582,10 +582,10 @@ namespace BizHawk
return ret;
}
public static uint[] ByteBufferToIntBuffer(byte[] buf)
public static int[] ByteBufferToIntBuffer(byte[] buf)
{
int num = buf.Length / 4;
uint[] ret = new uint[num];
int[] ret = new int[num];
for (int i = 0; i < num; i++)
{
ret[i] = buf[(i * 4) + 3];
@ -878,7 +878,7 @@ namespace BizHawk
else if (IsReader)
{
val = Util.ByteBufferToIntBuffer(Util.ReadByteBuffer(br, false));
if (val == null && !use_null) val = new uint[0];
if (val == null && !use_null) val = new int[0];
}
else Util.WriteByteBuffer(bw, Util.IntBufferToByteBuffer(val));
}