Skip to content

Commit

Permalink
aper: CHOICE cast different signedness comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
v0-e committed Jan 4, 2024
1 parent 87b80d4 commit a32a85d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skeletons/constr_CHOICE_aper.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ CHOICE_decode_aper(const asn_codec_ctx_t *opt_codec_ctx,
if(specs->ext_start == -1)
ASN__DECODE_FAILED;

if(specs && specs->tag2el_count > specs->ext_start) {
if(specs && specs->tag2el_count > (unsigned)specs->ext_start) {
value = aper_get_nsnnwn(pd); /* extension elements range */
if(value < 0) ASN__DECODE_STARVED;
value += specs->ext_start;
Expand Down

0 comments on commit a32a85d

Please sign in to comment.