fix yrange at()

This commit is contained in:
Christian Zimmermann 2024-03-23 20:52:57 +01:00
parent 236a5b1b81
commit d9a546a5cc

View file

@ -64,10 +64,16 @@ namespace CNORXZ
{
mLex = 0;
IB::mPos = 0;
bool outOfScope = false;
for(SizeT i = 0; i != dim(); ++i){
outOfScope |= mIs[i]->lex() >= mIs[i]->lmax().val();
mLex += mIs[i]->lex() * mLexFormat[i].val();
IB::mPos += mIs[i]->pos() * mFormat[i].val();
}
if(outOfScope){
IB::mPos = pmax().val();
mLex = lmax().val();
}
}
inline void YIndex::up(SizeT i)