]> git.stg.codes - stg.git/blobdiff - stglibs/smux.lib/constr_SET_OF.c
Fixed tests.
[stg.git] / stglibs / smux.lib / constr_SET_OF.c
index 09f27db53dada6869accd8dbb3aba0f56b49e00b..0d5efa4f83c189887822f4012fd2a500faf04ae4 100644 (file)
@@ -904,7 +904,7 @@ SET_OF_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
                        nelems = uper_get_length(pd,
                                ct ? ct->effective_bits : -1, &repeat);
                        ASN_DEBUG("Got to decode %d elements (eff %d)",
-                               (int)nelems, (int)ct ? ct->effective_bits : -1);
+                               (int)nelems, ct ? ct->effective_bits : -1);
                        if(nelems < 0) _ASN_DECODE_STARVED;
                }
 
@@ -921,7 +921,7 @@ SET_OF_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
                                ASN_DEBUG("Failed to add element into %s",
                                        td->name);
                                /* Fall through */
-                               rv.code == RC_FAIL;
+                               rv.code = RC_FAIL;
                        } else {
                                ASN_DEBUG("Failed decoding %s of %s (SET OF)",
                                        elm->type->name, td->name);