Commit 8ae074ce authored by Bi-Ruei, Chiu's avatar Bi-Ruei, Chiu Committed by Lev Walkin

Fix 'make check' error under sample.source.RRC

parent 7d5d9303
......@@ -204,7 +204,7 @@ asn_encode_to_new_buffer(const asn_codec_ctx_t *opt_codec_ctx,
&& (size_t)res.result.encoded != buf_key.computed_size) {
ASN_DEBUG("asn_encode() returned %" ASN_PRI_SSIZE
" yet produced %" ASN_PRI_SIZE " bytes",
er.encoded, buf_key.computed_size);
res.result.encoded, buf_key.computed_size);
assert(res.result.encoded < 0
|| (size_t)res.result.encoded == buf_key.computed_size);
}
......
......@@ -746,13 +746,13 @@ static void add_bytes_to_buffer(const void *data2add, size_t bytes) {
static int
is_syntax_PER(enum asn_transfer_syntax syntax) {
return (syntax != ATS_UNALIGNED_BASIC_PER
&& syntax != ATS_UNALIGNED_CANONICAL_PER);
return (syntax == ATS_UNALIGNED_BASIC_PER
|| syntax == ATS_UNALIGNED_CANONICAL_PER);
}
static int
restartability_supported(enum asn_transfer_syntax syntax) {
return is_syntax_PER(syntax);
return !is_syntax_PER(syntax);
}
static void *
......
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