mirror of
https://github.com/yuzu-emu/FasTC
synced 2024-11-22 15:53:51 +00:00
Merge branch 'master' of github.com:Mokosha/FasTC
This commit is contained in:
commit
5d0521eb2b
1 changed files with 2 additions and 3 deletions
|
@ -73,7 +73,7 @@ class Indexer {
|
||||||
assert(i > -l);
|
assert(i > -l);
|
||||||
assert(i < 2*l);
|
assert(i < 2*l);
|
||||||
|
|
||||||
int32 r;
|
int32 r = -1;
|
||||||
switch(m_WrapMode) {
|
switch(m_WrapMode) {
|
||||||
case eWrapMode_Clamp:
|
case eWrapMode_Clamp:
|
||||||
r = static_cast<uint32>(std::max(0, std::min(i, l-1)));
|
r = static_cast<uint32>(std::max(0, std::min(i, l-1)));
|
||||||
|
@ -93,7 +93,7 @@ class Indexer {
|
||||||
}
|
}
|
||||||
|
|
||||||
assert (r >= 0);
|
assert (r >= 0);
|
||||||
assert (r < limit);
|
assert (r < static_cast<int32>(limit));
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -117,7 +117,6 @@ class Indexer {
|
||||||
|
|
||||||
uint32 index = _j * this->m_Width + _i;
|
uint32 index = _j * this->m_Width + _i;
|
||||||
assert (index < this->m_Width * this->m_Height);
|
assert (index < this->m_Width * this->m_Height);
|
||||||
assert (index >= 0);
|
|
||||||
return index;
|
return index;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue