From: Howard Chu Date: Thu, 15 Sep 2005 03:19:26 +0000 (+0000) Subject: Fix prev commit, use BDB_IDL_LAST() X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~422 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6411c57028338282bcab8907654a9846b6fa8e14;p=openldap Fix prev commit, use BDB_IDL_LAST() --- diff --git a/servers/slapd/back-bdb/idl.c b/servers/slapd/back-bdb/idl.c index a826d401e4..161c926d98 100644 --- a/servers/slapd/back-bdb/idl.c +++ b/servers/slapd/back-bdb/idl.c @@ -1264,7 +1264,7 @@ int bdb_idl_merge( ID *a, ID *b ) if ( BDB_IDL_IS_RANGE( a ) || BDB_IDL_IS_RANGE(b) || a[0] + b[0] >= BDB_IDL_UM_MAX ) { ida = IDL_MIN( a[1], b[1] ); - idb = IDL_MAX( a[a[0]], b[b[0]] ); + idb = IDL_MAX( BDB_IDL_LAST(a), BDB_IDL_LAST(b) ); a[0] = NOID; a[1] = ida; a[2] = idb;