Skip to content

Commit

Permalink
Merge pull request #163 from v0-e/aper-choice-sign-warning
Browse files Browse the repository at this point in the history
aper: CHOICE cast different signedness comparison
  • Loading branch information
mouse07410 committed Jan 7, 2024
2 parents 670fe20 + a32a85d commit f2c5d7c
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 f2c5d7c

Please sign in to comment.