const asn_INTEGER_specifics_t *specs = td->specifics;
asn_dec_rval_t rval = { RC_OK, 0 };
long *native = (long *)*sptr;
- const asn_per_constraint_t *ct = NULL;
+ const asn_per_constraint_t *ct;
long value;
(void)opt_codec_ctx;
ASN_DEBUG("Decoding %s as NativeEnumerated", td->name);
- if(ct && ct->flags & APC_EXTENSIBLE) {
+ if(ct->flags & APC_EXTENSIBLE) {
int inext = per_get_few_bits(pd, 1);
if(inext < 0) ASN__DECODE_STARVED;
if(inext) ct = 0;
(const asn_INTEGER_specifics_t *)td->specifics;
asn_enc_rval_t er = {0,0,0};
long native, value;
- const asn_per_constraint_t *ct = NULL;
+ const asn_per_constraint_t *ct;
int inext = 0;
asn_INTEGER_enum_map_t key;
const asn_INTEGER_enum_map_t *kf;
}
value = kf - specs->value2enum;
- if(ct && ct->range_bits >= 0) {
+ if(ct->range_bits >= 0) {
int cmpWith = specs->extension
? specs->extension - 1 : specs->map_count;
if(value >= cmpWith)
inext = 1;
}
- if(ct && ct->flags & APC_EXTENSIBLE) {
+ if(ct->flags & APC_EXTENSIBLE) {
if(per_put_few_bits(po, inext, 1))
ASN__ENCODE_FAILED;
if(inext) ct = 0;
const asn_INTEGER_specifics_t *specs = (const asn_INTEGER_specifics_t *)td->specifics;
asn_dec_rval_t rval = { RC_OK, 0 };
long *native = (long *)*sptr;
- const asn_per_constraint_t *ct = NULL;
+ const asn_per_constraint_t *ct;
long value;
(void)opt_codec_ctx;
ASN_DEBUG("Decoding %s as NativeEnumerated", td->name);
- if(ct && ct->flags & APC_EXTENSIBLE) {
+ if(ct->flags & APC_EXTENSIBLE) {
int inext = per_get_few_bits(pd, 1);
if(inext < 0) ASN__DECODE_STARVED;
if(inext) ct = 0;
const asn_INTEGER_specifics_t *specs = (const asn_INTEGER_specifics_t *)td->specifics;
asn_enc_rval_t er = {0,0,0};
long native, value;
- const asn_per_constraint_t *ct = NULL;
+ const asn_per_constraint_t *ct;
int inext = 0;
asn_INTEGER_enum_map_t key;
asn_INTEGER_enum_map_t *kf;
}
value = kf - specs->value2enum;
- if(ct && ct->range_bits >= 0) {
+ if(ct->range_bits >= 0) {
int cmpWith = specs->extension
? specs->extension - 1 : specs->map_count;
if(value >= cmpWith)
inext = 1;
}
- if(ct && ct->flags & APC_EXTENSIBLE) {
+ if(ct->flags & APC_EXTENSIBLE) {
if(per_put_few_bits(po, inext, 1))
ASN__ENCODE_FAILED;
if(inext) ct = 0;