Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/env.h
diff options
context:
space:
mode:
authorLuc Trudeau <ltrudeau@twoorioles.com>2018-10-01 23:00:56 +0300
committerLuc Trudeau <ltrudeau@twoorioles.com>2018-10-02 04:44:39 +0300
commitbc739dceeb737226720146711b89e4381e63df3a (patch)
treebb7140d72b34983a99adbb4ea2833cbf231f92b6 /src/env.h
parent5f1d4f2725e15c90a309580a6b156bf681b7844b (diff)
Remove compare between int and uint
Diffstat (limited to 'src/env.h')
-rw-r--r--src/env.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/env.h b/src/env.h
index 03c80d9..ab97aba 100644
--- a/src/env.h
+++ b/src/env.h
@@ -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);
}