mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 09:39:45 -05:00
explain mdl_midl_sort() istack size
This commit is contained in:
parent
2d1f3b7ed3
commit
5f68293475
1 changed files with 3 additions and 1 deletions
|
|
@ -15,6 +15,7 @@
|
|||
* <http://www.OpenLDAP.org/license.html>.
|
||||
*/
|
||||
|
||||
#include <limits.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#include <assert.h>
|
||||
|
|
@ -134,7 +135,8 @@ int mdb_midl_append( IDL ids, ID id )
|
|||
void
|
||||
mdb_midl_sort( ID *ids )
|
||||
{
|
||||
int istack[16*sizeof(int)];
|
||||
/* Max possible depth of int-indexed tree * 2 items/level */
|
||||
int istack[sizeof(int)*CHAR_BIT * 2];
|
||||
int i,j,k,l,ir,jstack;
|
||||
ID a, itmp;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue