fix compiler warnings
diff --git a/libasn1compiler/asn1c_C.c b/libasn1compiler/asn1c_C.c
index d49fd3f..bbb9393 100644
--- a/libasn1compiler/asn1c_C.c
+++ b/libasn1compiler/asn1c_C.c
@@ -1775,8 +1775,8 @@
 	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) {
diff --git a/libasn1compiler/asn1c_constraint.c b/libasn1compiler/asn1c_constraint.c
index 6fe896f..8404e90 100644
--- a/libasn1compiler/asn1c_constraint.c
+++ b/libasn1compiler/asn1c_constraint.c
@@ -705,7 +705,7 @@
 	&& 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)
diff --git a/libasn1compiler/asn1c_misc.c b/libasn1compiler/asn1c_misc.c
index fae9b52..6888e73 100644
--- a/libasn1compiler/asn1c_misc.c
+++ b/libasn1compiler/asn1c_misc.c
@@ -384,7 +384,7 @@
 		&& left.value >= 0
 	&& right.type == ARE_VALUE
 		&& right.value > 2147483647
-		&& right.value <= 4294967295UL)
+		&& right.value <= (asn1c_integer_t)(4294967295UL))
 		return FL_FITS_UNSIGN;