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

This commit is contained in:
Neil Brown 2007-07-31 22:04:31 +00:00
parent 7d7f66c626
commit 498e00c584

View File

@ -114,7 +114,7 @@ inline std::pair< boost::array<unsigned,1> , unsigned > tockDims(const unsigned
{ {
boost::array<unsigned,1> r; boost::array<unsigned,1> r;
r[0] = d0; r[0] = d0;
return std::pair< boost::array<unsigned,1> , unsigned >(r,1); return std::pair< boost::array<unsigned,1> , unsigned >(r,d0 == 0 ? 0 : 1);
} }
/* /*