From 05293f75c10933841540ba8158563eb0603cfb70 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Sun, 14 Oct 2007 11:08:30 +0000 Subject: [PATCH] Fixed an error in the C++CSP support file where arrays with the first dimension being free would not have their size recalculated --- tock_support_cppcsp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tock_support_cppcsp.h b/tock_support_cppcsp.h index 904ee77..7345f32 100644 --- a/tock_support_cppcsp.h +++ b/tock_support_cppcsp.h @@ -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: