ref: 39de556c5d958e780fd5fdc6a6303ed4a83d322e
parent: 1dfda04f575a833f09a41a97eb3ddd064700aac0
author: Martin Storsjö <[email protected]>
date: Wed Feb 13 04:57:57 EST 2019
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?)
--- a/src/lib.c
+++ b/src/lib.c
@@ -457,7 +457,7 @@
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))