slightly more adequate constant

git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@48 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
vlm 2004-07-01 00:48:04 +00:00
parent e26690f3a6
commit 5d219bfdee
1 changed files with 2 additions and 2 deletions

View File

@ -237,9 +237,9 @@ SEQUENCE_decode_ber(asn1_TYPE_descriptor_t *sd,
opt_edx_end = edx + elements[edx].optional + 1;
if(opt_edx_end > specs->elements_count)
opt_edx_end = specs->elements_count; /* Cap */
else if(opt_edx_end - edx > 5) {
else if(opt_edx_end - edx > 8) {
/* Limit the scope of linear search... */
opt_edx_end = edx + 5;
opt_edx_end = edx + 8;
use_bsearch = 1;
/* ... and resort to bsearch() */
}