summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Robbbert <Robbbert@users.noreply.github.com>2021-02-14 02:27:09 +1100
committer Robbbert <Robbbert@users.noreply.github.com>2021-02-14 02:27:09 +1100
commit2604f15c1085e08a7ffeb340e3d8eab3f01604ed (patch)
treec27fdeb6829d54631018d545e61f887fcad6b229
parentb8354a4a5faeb1afef7835b77eede3225a8a75f5 (diff)
bfm_sc2: Coverity 316034,315508
-rw-r--r--src/mame/drivers/bfm_sc2.cpp1
-rw-r--r--src/mame/drivers/highvdeo.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/mame/drivers/bfm_sc2.cpp b/src/mame/drivers/bfm_sc2.cpp
index cd5b8e3a6bc..d2584833587 100644
--- a/src/mame/drivers/bfm_sc2.cpp
+++ b/src/mame/drivers/bfm_sc2.cpp
@@ -996,6 +996,7 @@ void bfm_sc2_state::payout_triac_w(uint8_t data)
if ( slide )
{
+ slide--; // slide_pay_sensor index is 0 to 5, so decrement now.
if ( data == 0x4D )
{
if ( !m_slide_states[slide] )
diff --git a/src/mame/drivers/highvdeo.cpp b/src/mame/drivers/highvdeo.cpp
index 16c02ff3922..d3c830779fd 100644
--- a/src/mame/drivers/highvdeo.cpp
+++ b/src/mame/drivers/highvdeo.cpp
@@ -641,7 +641,7 @@ uint16_t highvdeo_state::grancapi_status_r(offs_t offset)
resetpulse^=0x20;
return 3 | resetpulse;
- case 2: return (m_grancapi_prot_latch & 3)|0x17; //and 0x3f
+ case 2: return (m_grancapi_prot_latch & 3)|0x17; //and 0x3f // This will always return 0x17: Coverity 316053
}
return 0;