fix two bugs dicovered by the previous commit.

This commit is contained in:
Gael Guennebaud
2008-06-16 16:39:58 +00:00
parent bb1f4e44f1
commit 5dbfed1902
3 changed files with 13 additions and 12 deletions

View File

@@ -216,7 +216,8 @@ struct ei_traits<Product<Lhs, Rhs, EvalMode> >
_RowMajor = (RhsFlags & RowMajorBit)
&& (EvalMode==(int)CacheFriendlyProduct ? (int)LhsFlags & RowMajorBit : (!_LhsPacketAccess)),
_LostBits = ~((_RowMajor ? 0 : RowMajorBit)
| ((RowsAtCompileTime == Dynamic || ColsAtCompileTime == Dynamic) ? 0 : LargeBit)),
| ((RowsAtCompileTime == Dynamic || ColsAtCompileTime == Dynamic) ? 0 : LargeBit)
| LinearAccessBit),
Flags = ((unsigned int)(LhsFlags | RhsFlags) & HereditaryBits & _LostBits)
| EvalBeforeAssigningBit
| EvalBeforeNestingBit