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:
parent
c19ae03116
commit
05293f75c1
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user