Fixed an error in the C++CSP support file where arrays with the first dimension being free would not have their size recalculated

This commit is contained in:
Neil Brown 2007-10-14 11:08:30 +00:00
parent c19ae03116
commit 05293f75c1

View File

@ -178,7 +178,7 @@ class tockArrayView
//TODO change the other methods so we can feed a string in here (the Meta) to report to occam_stop
inline void correctDimsRetype(const unsigned totalSourceBytes)
{
if (totalSubDim == 0)
if (totalSubDim == 0 || dims[0] == 0)
{
//Can only happen if one of the dimensions is zero, i.e. unknown
//We must find this dimension and calculate it: