We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 258849b commit f8c67b9Copy full SHA for f8c67b9
tests/test_thread.hpp
@@ -267,11 +267,11 @@ struct params_pack_helper_t<0, R> {
267
core_types(); /* sorted by the relative strength */ \
268
\
269
if ((ctx.core_type != default_thr_ctx.core_type) \
270
- && (ctx.core_type >= core_types.size())) \
+ && ((size_t)ctx.core_type >= core_types.size())) \
271
printf("WARNING: TBB smallest core has index %lu. Using this " \
272
"instead of %d.\n", \
273
core_types.size() - 1, ctx.core_type); \
274
- size_t core_type_id = ctx.core_type < core_types.size() \
+ size_t core_type_id = (size_t)ctx.core_type < core_types.size() \
275
? ctx.core_type \
276
: core_types.size() - 1; \
277
static auto core_type = ctx.core_type == tbb::task_arena::automatic \
0 commit comments