fix yrange at()
This commit is contained in:
parent
236a5b1b81
commit
d9a546a5cc
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue