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:
parent
7d7f66c626
commit
498e00c584
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user