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

Fix sign-compare error in oer_support

oer_support.c:38:22: error: comparison between signed and unsigned integer expressions [-Werror=s
parent c3e0019b
......@@ -35,7 +35,7 @@ oer_fetch_length(const void *bufptr, size_t size, size_t *len_r) {
}
len_len = (first_byte & 0x7f);
if((1 + len_len) > size) {
if((size_t)(1 + len_len) > size) {
*len_r = 0;
return 0;
}
......
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