device: fix compiler bugs

This commit is contained in:
Kamil Trzcinski
2023-03-03 00:28:48 +01:00
parent edba5098d2
commit 9db8ba5fa5
3 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@
static bool camera_output_matches_capture(buffer_list_t *capture, unsigned target_height, unsigned format)
{
if (target_height && abs(capture->fmt.height - target_height) > MATCH_ALIGN_SIZE) {
if (target_height && abs((int)capture->fmt.height - (int)target_height) > MATCH_ALIGN_SIZE) {
return false;
}