fix issue #126: decoding extensible CHOICE error
The constraints ct was not effective for extensible CHOICE, so if ct && ct->flags & APC_EXTENSIBLE was true, ct was set to 0. Using normal CHOICE constraint in decoding extensible CHOICE was weird. We should change the normal CHOICE constraint to extensible CHOICE constraint when decoding extensible CHOICE, the extensible CHOICE constraint was lb=0,ub=specs->tag2el_count-specs->ext_start-1. So the conditional structure should be if specs && specs->tag2el_count > specs->ext_start, then decoding the CHOICE which range was specs->tag2el_count - specs->ext_start, and add specs->ext_start to value in the last.
Showing
Please register or sign in to comment