Bug report:btAlignedObjectArray::findBinarySearch

snowcat
Posts: 9
Joined: Thu Jan 10, 2008 3:53 am

Bug report:btAlignedObjectArray::findBinarySearch

Post by snowcat »

Bullet 2.77 btAlignedObjectArray.h:406

Code: Select all

	int	findBinarySearch(const T& key) const
	{
		int first = 0;
		int last = size();
i think it should be

Code: Select all

	int	findBinarySearch(const T& key) const
	{
		int first = 0;
		int last = size() - 1;
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Bug report:btAlignedObjectArray::findBinarySearch

Post by Erwin Coumans »

It was indeed a bug. Luckily the findBinarySearch method isn't use in Bullet yet.

It has been fixed in latest trunk: http://code.google.com/p/bullet/source/detail?r=2275

Thanks for the report!
Erwin