Fix GCC 4.3 "array bounds overflow" error. This is obviously a bug, Couriersud please take a look :)

This commit is contained in:
R. Belmont 2008-08-06 03:19:52 +00:00
parent 47b3fc7984
commit ebbd232ba3

View File

@ -1502,7 +1502,7 @@ INLINE double dss_inverter_tf(node_description *node, double x)
else if (x <= info->vB)
return context->tf_tab[(int)((double)(DSS_INV_TAB_SIZE-1) * x / info->vB)];
else
return context->tf_tab[DSS_INV_TAB_SIZE];
return context->tf_tab[DSS_INV_TAB_SIZE-1];
}
static void dss_inverter_osc_step(node_description *node)