Skip to content

Commit a1f41d7

Browse files
committed
Fix build
1 parent 5369a6a commit a1f41d7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/BizHawk.Common/EndiannessUtils.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static void MutatingByteSwap32(Span<byte> a)
3131
fixed (byte* p = &a[0]) for (var i = 0; i < l; i += 4)
3232
{
3333
(p[i + 3], p[i]) = (p[i], p[i + 3]);
34-
b = p[i + 1];
34+
var b = p[i + 1];
3535
p[i + 1] = p[i + 2];
3636
p[i + 2] = b;
3737
}

src/BizHawk.Emulation.Cores/CPUs/Z80A/Operations.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ public void ADDS_Func(ushort dest_l, ushort dest_h, ushort src_l, ushort src_h)
651651
public void EXCH_16_Func(ushort dest_l, ushort dest_h, ushort src_l, ushort src_h)
652652
{
653653
(Regs[src_l], Regs[dest_l]) = (Regs[dest_l], Regs[src_l]);
654-
temp = Regs[dest_h];
654+
var temp = Regs[dest_h];
655655
Regs[dest_h] = Regs[src_h];
656656
Regs[src_h] = temp;
657657
}

src/BizHawk.Tests/Emulation.Common/Base Implementations/MemoryCallbackSystemTests.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public void TestAddingCallbackWithinCallback()
208208
MemoryCallback callback3 = new(ScopeA, MemoryCallbackType.Read, "Callback 3", _testCallbacks.Callback3, null, null);
209209

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

235235
var callback2invoked = false;
236-
void callback(uint _, uint _, uint _)
236+
void callback(uint _1, uint _2, uint _3)
237237
{
238238
callback2invoked = true;
239239
_memoryCallbackSystem.Remove(callback1.Callback);
@@ -264,7 +264,7 @@ public void TestRemovingSelfWithinCallback()
264264

265265
MemoryCallback? callback2 = null;
266266
var callback2invoked = false;
267-
void callback(uint _, uint _, uint _)
267+
void callback(uint _1, uint _2, uint _3)
268268
{
269269
callback2invoked = true;
270270
_memoryCallbackSystem.Remove(callback2!.Callback);

0 commit comments

Comments
 (0)