From 498e00c58469e61a78e49b7b5b7eff5812389eeb Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Tue, 31 Jul 2007 22:04:31 +0000 Subject: [PATCH] Fixed a bug that stopped arrays with a single dimension (that was also unknown) from having their sizes calculated in tockArrayView. cgtest09 now all passes --- 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 470bbf2..bd3129f 100644 --- a/tock_support_cppcsp.h +++ b/tock_support_cppcsp.h @@ -114,7 +114,7 @@ inline std::pair< boost::array , unsigned > tockDims(const unsigned { boost::array r; r[0] = d0; - return std::pair< boost::array , unsigned >(r,1); + return std::pair< boost::array , unsigned >(r,d0 == 0 ? 0 : 1); } /*