Commit 443d2512 authored by Lev Walkin's avatar Lev Walkin

ease comparison with signed sizeof()

parent 48f0dd63
......@@ -192,9 +192,8 @@ OCTET_STRING_decode_ber(asn_codec_ctx_t *opt_codec_ctx,
rval = ber_check_tags(opt_codec_ctx, td, ctx,
buf_ptr, size, tag_mode, -1,
&ctx->left, &tlv_constr);
if(rval.code != RC_OK) {
RETURN(rval.code);
}
if(rval.code != RC_OK)
return rval;
if(tlv_constr) {
/*
......@@ -693,7 +692,7 @@ OCTET_STRING_encode_xer_ascii(asn_TYPE_descriptor_t *td, void *sptr,
buf = st->buf;
end = buf + st->size;
for(ss = buf; buf < end; buf++) {
int ch = *buf;
unsigned int ch = *buf;
int s_len; /* Special encoding sequence length */
/*
......
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