Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
TiKevin83 committed Aug 22, 2023
1 parent 21c48ed commit 4f227da
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/BizHawk.Common/EndiannessUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static void MutatingByteSwap32(Span<byte> a)
fixed (byte* p = &a[0]) for (var i = 0; i < l; i += 4)
{
(p[i + 3], p[i]) = (p[i], p[i + 3]);
b = p[i + 1];
var b = p[i + 1];
p[i + 1] = p[i + 2];
p[i + 2] = b;
}
Expand Down
2 changes: 1 addition & 1 deletion src/BizHawk.Emulation.Cores/CPUs/Z80A/Operations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ public void ADDS_Func(ushort dest_l, ushort dest_h, ushort src_l, ushort src_h)
public void EXCH_16_Func(ushort dest_l, ushort dest_h, ushort src_l, ushort src_h)
{
(Regs[src_l], Regs[dest_l]) = (Regs[dest_l], Regs[src_l]);
temp = Regs[dest_h];
var temp = Regs[dest_h];
Regs[dest_h] = Regs[src_h];
Regs[src_h] = temp;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public void TestAddingCallbackWithinCallback()
MemoryCallback callback3 = new(ScopeA, MemoryCallbackType.Read, "Callback 3", _testCallbacks.Callback3, null, null);

var callback1invoked = false;
void callback(uint _, uint _, uint _)
void callback(uint _1, uint _2, uint _3)
{
callback1invoked = true;
_memoryCallbackSystem.Add(callback2);
Expand All @@ -233,7 +233,7 @@ public void TestRemovingCallbackWithinCallback()
MemoryCallback callback1 = new(ScopeA, MemoryCallbackType.Read, "Callback 1", _testCallbacks.Callback1, null, null);

var callback2invoked = false;
void callback(uint _, uint _, uint _)
void callback(uint _1, uint _2, uint _3)
{
callback2invoked = true;
_memoryCallbackSystem.Remove(callback1.Callback);
Expand Down Expand Up @@ -264,7 +264,7 @@ public void TestRemovingSelfWithinCallback()

MemoryCallback? callback2 = null;
var callback2invoked = false;
void callback(uint _, uint _, uint _)
void callback(uint _1, uint _2, uint _3)
{
callback2invoked = true;
_memoryCallbackSystem.Remove(callback2!.Callback);
Expand Down

0 comments on commit 4f227da

Please sign in to comment.