Commit e56f4b24 authored by Vasil Velichkov's avatar Vasil Velichkov Committed by Lev Walkin

Fix one sign-compare error in OCTET_STRING.c

OCTET_STRING.c:1896:46: error: signed and unsigned type in conditional expression [-Werror=sign-compare]
parent e60e6f22
......@@ -1893,7 +1893,7 @@ OCTET_STRING_random_length_constrained(
if(pc->flags & APC_CONSTRAINED) {
long suggested_upper_bound = pc->upper_bound < (ssize_t)max_length
? pc->upper_bound
: max_length;
: (ssize_t)max_length;
if(max_length <= (size_t)pc->lower_bound) {
return pc->lower_bound;
}
......
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