Previous 199869 Revisions Next

r31451 Monday 28th July, 2014 at 08:02:02 UTC by Oliver Stöneberg
added assert for index out-of-bounds access with tecnbras (nw)
[src/mess/drivers]tecnbras.c

trunk/src/mess/drivers/tecnbras.c
r31450r31451
7575{
7676   int x = m_xcoord + offset;
7777   for (int i=0; i<7; i++){
78      assert((x/5) < ARRAY_LENGTH(m_digit));
7879      m_digit[x/5][i] &= ~(1 << (x%5));
7980      m_digit[x/5][i] |= BIT(data, 7-i) ? (1 << (x%5)) : 0;
8081      output_set_indexed_value("dmd_", (x/5)*7 + i, 0x1F & m_digit[x/5][i]);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team