Applied some warning/assert patches, thanks to Ole K.

http://code.google.com/p/bullet/issues/detail?id=186
This commit is contained in:
erwin.coumans
2009-02-06 19:05:54 +00:00
parent 17bf62c013
commit 41af960e7a
3 changed files with 3 additions and 5 deletions

View File

@@ -150,8 +150,7 @@ int btBvhTree::_sort_and_calc_splitting_index(
splitIndex = startIndex+ (numIndices>>1);
}
bool unbal = (splitIndex==startIndex) || (splitIndex == (endIndex));
btAssert(!unbal);
btAssert(!((splitIndex==startIndex) || (splitIndex == (endIndex))));
return splitIndex;

View File

@@ -171,8 +171,7 @@ int btQuantizedBvhTree::_sort_and_calc_splitting_index(
splitIndex = startIndex+ (numIndices>>1);
}
bool unbal = (splitIndex==startIndex) || (splitIndex == (endIndex));
btAssert(!unbal);
btAssert(!((splitIndex==startIndex) || (splitIndex == (endIndex))));
return splitIndex;

View File

@@ -110,7 +110,7 @@ GUINT GIM_BOX_TREE::_sort_and_calc_splitting_index(
splitIndex = startIndex+ (numIndices>>1);
}
btAssert(!(splitIndex==startIndex) || (splitIndex == (endIndex)));
btAssert(!((splitIndex==startIndex) || (splitIndex == (endIndex))));
return splitIndex;
}