aboutsummaryrefslogtreecommitdiffstats
path: root/utils/common/v4l2-tpg-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/common/v4l2-tpg-core.c')
-rw-r--r--utils/common/v4l2-tpg-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/common/v4l2-tpg-core.c b/utils/common/v4l2-tpg-core.c
index 51e13809..f7311c97 100644
--- a/utils/common/v4l2-tpg-core.c
+++ b/utils/common/v4l2-tpg-core.c
@@ -1758,7 +1758,7 @@ typedef struct { u16 __; u8 _; } __packed x24;
unsigned s; \
\
for (s = 0; s < len; s++) { \
- u8 chr = font8x16[text[s] * 16 + line]; \
+ u8 chr = font8x16[(u8)text[s] * 16 + line]; \
\
if (hdiv == 2 && tpg->hflip) { \
pos[3] = (chr & (0x01 << 6) ? fg : bg); \

Privacy Policy