diff options
author | Henrik Gramner <gramner@twoorioles.com> | 2021-09-03 20:05:41 +0300 |
---|---|---|
committer | Henrik Gramner <henrik@gramner.com> | 2021-09-03 20:08:56 +0300 |
commit | a978375bf8ef28b76929adb1c6e9f2013b4a84ac (patch) | |
tree | 01ef9586c2f5a9ada45bfa37a8db19c4bfcf3fd1 /src/lib.c | |
parent | 51a4272f0cb4f59752fbe53e1ef1dfeec26b58ec (diff) |
msvc: Fix some signedness warnings
Diffstat (limited to 'src/lib.c')
-rw-r--r-- | src/lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -355,8 +355,8 @@ static int drain_picture(Dav1dContext *const c, Dav1dPicture *const out) { Dav1dThreadPicture *const out_delayed = &c->frame_thread.out_delayed[next]; if (out_delayed->p.data[0]) { - if (atomic_load(&c->task_thread.first) + 1 < c->n_fc) - atomic_fetch_add(&c->task_thread.first, 1); + if (atomic_load(&c->task_thread.first) + 1U < c->n_fc) + atomic_fetch_add(&c->task_thread.first, 1U); else atomic_store(&c->task_thread.first, 0); if (c->task_thread.cur && c->task_thread.cur < c->n_fc) |