Commit 1b3a1351 authored by Lev Walkin's avatar Lev Walkin

fix compiler warnings

parent 6b949bbd
......@@ -1775,8 +1775,8 @@ expr_elements_count(arg_t *arg, asn1p_expr_t *expr) {
if(!topmost_parent) return 0;
if(!(topmost_parent->expr_type & ASN_CONSTR_MASK)
&& !topmost_parent->expr_type == ASN_BASIC_INTEGER
&& !topmost_parent->expr_type == ASN_BASIC_ENUMERATED)
&& !(topmost_parent->expr_type == ASN_BASIC_INTEGER)
&& !(topmost_parent->expr_type == ASN_BASIC_ENUMERATED))
return 0;
TQ_FOR(v, &(topmost_parent->members), next) {
......
......@@ -705,7 +705,7 @@ native_long_sign(asn1cnst_range_t *r) {
&& r->left.value >= 0
&& r->right.type == ARE_VALUE
&& r->right.value > 2147483647
&& r->right.value <= 4294967295UL) {
&& r->right.value <= (asn1c_integer_t)(4294967295UL)) {
if(r->el_count == 0
&& r->left.value == 0
&& r->right.value == 4294967295UL)
......
......@@ -384,7 +384,7 @@ asn1c_type_fits_long(arg_t *arg, asn1p_expr_t *expr) {
&& left.value >= 0
&& right.type == ARE_VALUE
&& right.value > 2147483647
&& right.value <= 4294967295UL)
&& right.value <= (asn1c_integer_t)(4294967295UL))
return FL_FITS_UNSIGN;
......
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