Commit c3e0019b authored by Vasil Velichkov's avatar Vasil Velichkov Committed by Lev Walkin

Fix sign-compare error in constr_SEQUENCE.c

constr_SEQUENCE.c:1438:24: error: signed and unsigned type in conditional expression [-Werror=sign-compare]
parent 39ab82f3
......@@ -1435,7 +1435,7 @@ SEQUENCE_encode_uper(const asn_TYPE_descriptor_t *td,
*/
ASN_DEBUG("ext_after = %d, ec = %d, eb = %d", specs->ext_after, td->elements_count, specs->ext_before);
for(edx = 0; edx < ((specs->ext_after < 0)
? td->elements_count : specs->ext_before - 1); edx++) {
? td->elements_count : (size_t)specs->ext_before - 1); edx++) {
asn_TYPE_member_t *elm = &td->elements[edx];
const void *memb_ptr; /* Pointer to the member */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment