From 46911ceb9f6415bc939ae178b605c8b5e5132e49 Mon Sep 17 00:00:00 2001 From: Fabio Priuli Date: Tue, 14 Oct 2014 20:12:55 +0000 Subject: [PATCH] I don't think these are really needed, but let's try to use more parentheses ;) nw. --- src/emu/bus/pce/pce_slot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emu/bus/pce/pce_slot.c b/src/emu/bus/pce/pce_slot.c index 611525a6a53..767cfa991c7 100644 --- a/src/emu/bus/pce/pce_slot.c +++ b/src/emu/bus/pce/pce_slot.c @@ -305,11 +305,11 @@ int pce_cart_slot_device::get_cart_type(UINT8 *ROM, UINT32 len) type = PCE_SF2; /* Check for Populous */ - if (len >= 0x1f26 + 8 && !memcmp(ROM + 0x1f26, "POPULOUS", 8)) + if (len >= (0x1f26 + 8) && !memcmp(ROM + 0x1f26, "POPULOUS", 8)) type = PCE_POPULOUS; // Check for CD system card v3 which adds on-cart RAM to the system - if (len >= 0x3ffb6 + 23 && !memcmp(ROM + 0x3ffb6, "PC Engine CD-ROM SYSTEM", 23)) + if (len >= (0x3ffb6 + 23) && !memcmp(ROM + 0x3ffb6, "PC Engine CD-ROM SYSTEM", 23)) { /* Check if 192KB additional system card ram should be used */ if (!memcmp(ROM + 0x29d1, "VER. 3.", 7)) { type = PCE_CDSYS3J; } // JP version