Skip to content

Commit f8c67b9

Browse files
committed
benchdnn: fix comparison warning
1 parent 258849b commit f8c67b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_thread.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,11 @@ struct params_pack_helper_t<0, R> {
267267
core_types(); /* sorted by the relative strength */ \
268268
\
269269
if ((ctx.core_type != default_thr_ctx.core_type) \
270-
&& (ctx.core_type >= core_types.size())) \
270+
&& ((size_t)ctx.core_type >= core_types.size())) \
271271
printf("WARNING: TBB smallest core has index %lu. Using this " \
272272
"instead of %d.\n", \
273273
core_types.size() - 1, ctx.core_type); \
274-
size_t core_type_id = ctx.core_type < core_types.size() \
274+
size_t core_type_id = (size_t)ctx.core_type < core_types.size() \
275275
? ctx.core_type \
276276
: core_types.size() - 1; \
277277
static auto core_type = ctx.core_type == tbb::task_arena::automatic \

0 commit comments

Comments
 (0)