Commit 39de556c authored by Martin Storsjö's avatar Martin Storsjö

lib: Properly mark threads above 32 as available

This fixes the following MSVC warning:
../src/lib.c(460): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
parent 1dfda04f
......@@ -457,7 +457,7 @@ static void close_internal(Dav1dContext **const c_out, int flush) {
t->tile_thread.die = 1;
// mark not created tile threads as available
if (!t->tile_thread.td.inited)
f->tile_thread.available |= 1<<m;
f->tile_thread.available |= 1ULL<<m;
}
pthread_cond_broadcast(&f->tile_thread.cond);
while (f->tile_thread.available != ~0ULL >> (64 - f->n_tc))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment