mirror of
https://github.com/holub/mame
synced 2025-06-06 04:43:45 +03:00
Fix GCC 4.3 "array bounds exceeded" error in disc_flt.c.
Would whoever checked this in double-check my change? I believe I got the intent of the code (which is not how it was written ;-) but I could be wrong. --This line, and those belo M disc_flt.c
This commit is contained in:
parent
31ee705dba
commit
99b29738b8
@ -1053,8 +1053,10 @@ static void dst_rcfilter_sw_reset(node_description *node)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < 4; i++)
|
for (i = 0; i < 4; i++)
|
||||||
|
{
|
||||||
context->vCap[i] = 0;
|
context->vCap[i] = 0;
|
||||||
context->exp[i] = RC_CHARGE_EXP(CD4066_ON_RES * DST_RCFILTER_SW__C(i));
|
context->exp[i] = RC_CHARGE_EXP(CD4066_ON_RES * DST_RCFILTER_SW__C(i));
|
||||||
|
}
|
||||||
node->output[0] = 0;
|
node->output[0] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user