Skip to content

Commit

Permalink
Removed unnecessary parentheses.
Browse files Browse the repository at this point in the history
  • Loading branch information
agaxia committed Jan 28, 2025
1 parent 3fe4d82 commit f7ec2be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sources/test-Z80.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ static zuint8 cpm_cpu_hook(void *context, zuint16 address)
/* BDOS function 2 (C_WRITE) - Console output */
if (Z80_C(cpu) == 2)
{
hash = Z_FNV1_32_UPDATE(hash, (character = Z80_E(cpu)));
hash = Z_FNV1_32_UPDATE(hash, character = Z80_E(cpu));

switch (character)
{
Expand All @@ -292,7 +292,7 @@ static zuint8 cpm_cpu_hook(void *context, zuint16 address)

while (c--)
{
hash = Z_FNV1_32_UPDATE(hash, (character = memory[i++]));
hash = Z_FNV1_32_UPDATE(hash, character = memory[i++]);

switch (character)
{
Expand Down Expand Up @@ -328,7 +328,7 @@ static zuint8 zx_spectrum_cpu_hook(void *context, zuint16 address)

Z_UNUSED(context)
if (address != zx_spectrum_print_hook_address) return OPCODE_NOP;
hash = Z_FNV1_32_UPDATE(hash, (character = Z80_A(cpu)));
hash = Z_FNV1_32_UPDATE(hash, character = Z80_A(cpu));

if (!zx_spectrum_tab) switch (character)
{
Expand Down

0 comments on commit f7ec2be

Please sign in to comment.