Commit bc739dce authored by Luc Trudeau's avatar Luc Trudeau

Remove compare between int and uint

parent 5f1d4f27
......@@ -221,11 +221,11 @@ static inline int get_comp_ctx(const BlockContext *const a,
return 4;
} else {
// 4U means intra (-1) or bwd (>= 4)
return 2 + (l->ref[0][yb4] >= 4U);
return 2 + ((unsigned)l->ref[0][yb4] >= 4U);
}
} else if (l->comp_type[yb4]) {
// 4U means intra (-1) or bwd (>= 4)
return 2 + (a->ref[0][xb4] >= 4U);
return 2 + ((unsigned)a->ref[0][xb4] >= 4U);
} else {
return (l->ref[0][yb4] >= 4) ^ (a->ref[0][xb4] >= 4);
}
......
......@@ -50,7 +50,7 @@ static int parse_seq_hdr(Dav1dContext *const c, GetBits *const gb) {
#define DEBUG_SEQ_HDR 0
hdr->profile = get_bits(gb, 3);
if (hdr->profile > 2U) goto error;
if (hdr->profile > 2) goto error;
#if DEBUG_SEQ_HDR
printf("SEQHDR: post-profile: off=%ld\n",
(gb->ptr - init_ptr) * 8 - gb->bits_left);
......
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