From a32a85d2fe099f2ab1313dac23b6cfd690d2cb5c Mon Sep 17 00:00:00 2001 From: v0-e Date: Thu, 4 Jan 2024 10:59:43 +0000 Subject: [PATCH] aper: CHOICE cast different signedness comparison --- skeletons/constr_CHOICE_aper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skeletons/constr_CHOICE_aper.c b/skeletons/constr_CHOICE_aper.c index 4a7127811..0f0742333 100644 --- a/skeletons/constr_CHOICE_aper.c +++ b/skeletons/constr_CHOICE_aper.c @@ -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;