From 9b2dfe7ae276d441583c62d582725a7cbd483bd2 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Mon, 17 May 2021 16:52:55 +0300 Subject: [PATCH] Style fixes --- Core/gb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/gb.c b/Core/gb.c index 0a0c1dd..4bf9287 100644 --- a/Core/gb.c +++ b/Core/gb.c @@ -371,12 +371,12 @@ void GB_gbs_switch_track(GB_gameboy_t *gb, uint8_t track) int GB_load_gbs_from_buffer(GB_gameboy_t *gb, const uint8_t *buffer, size_t size, GB_gbs_info_t *info) { - if(size < sizeof(gb->gbs_header)) { + if (size < sizeof(gb->gbs_header)) { GB_log(gb, "Not a valid GBS file.\n"); return -1; } - memcpy(&gb->gbs_header,buffer,sizeof(gb->gbs_header)); + memcpy(&gb->gbs_header, buffer, sizeof(gb->gbs_header)); if (gb->gbs_header.magic != BE32('GBS\x01') || ((LE16(gb->gbs_header.load_address) < GBS_ENTRY + GBS_ENTRY_SIZE ||