-
- Downloads
graphics: Avoid -Wtype-limits for comparing unsigned enum >= 0
SrtWindowSystem has no valid negative values, so the compiler can use
an unsigned base type for it, which makes window_system >= 0
tautologous. SrtRenderingInterface has the same issue.
Use an unsigned cast to make the assertion obviously equally valid,
whether the enum's base type is signed or not.
Signed-off-by:
Simon McVittie <smcv@collabora.com>
parent
92576306
No related branches found
No related tags found
Loading
Please register or sign in to comment