Fix off-by-one error in SHAMapNodeID:

Limit is 64 inner nodes at depth 0-63, and one leaf at depth 64
This commit is contained in:
JoelKatz
2015-05-06 15:24:21 -07:00
committed by Nik Bougalis
parent 9cded76cf0
commit 16aa015682

View File

@@ -102,7 +102,7 @@ inline
bool
SHAMapNodeID::isValid () const
{
return (mDepth >= 0) && (mDepth < 64);
return (mDepth >= 0) && (mDepth <= 64);
}
inline