Unverified Commit 0345f405 authored by Kurtis Dinelle's avatar Kurtis Dinelle Committed by GitHub
Browse files

Merge pull request #8 from phcoder/cast

Add explicit cast for better analysis
parents 7dbb70d6 332bcd4e
Pipeline #81103 passed with stages
in 6 minutes and 26 seconds
......@@ -611,7 +611,7 @@ void chip8_execute(CHIP8 *chip8)
x = NUM_BITPLANES;
}
chip8->bitplane = x;
chip8->bitplane = (CHIP8BP) x;
break;
/* AUDIO (XO-CHIP Only)
......
......@@ -544,7 +544,7 @@ bool retro_serialize(void *data, size_t size)
if (size < sizeof (struct serialized_state))
return false;
struct serialized_state *st = data;
struct serialized_state *st = (struct serialized_state *) data;
memcpy(&st->chip8, &chip8, sizeof(st->chip8));
st->cpu_debt = cpu_debt;
st->audio_counter_chip8 = audio_counter_chip8;
......@@ -560,7 +560,7 @@ bool retro_unserialize(const void *data, size_t size)
if (size < sizeof (struct serialized_state))
return false;
const struct serialized_state *st = data;
const struct serialized_state *st = (struct serialized_state *) data;
memcpy(&chip8, &st->chip8, sizeof(chip8));
cpu_debt = st->cpu_debt;
audio_counter_chip8 = st->audio_counter_chip8;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment