Skip to content

Commit a98cde4

Browse files
committed
[portable] Fix -Wsign-compare
1 parent 33f858f commit a98cde4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernels/portable/cpu/util/repeat_util.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ bool check_repeat_args(
6868
}
6969
for (size_t i = 0; i < repeats.size(); i++) {
7070
ET_CHECK_OR_RETURN_FALSE(
71-
reformat_self_size[i] * repeats[i] ==
71+
reformat_self_size[i] * static_cast<size_t>(repeats[i]) ==
7272
static_cast<uint64_t>(out.size(i)),
7373
"Expect out size at dimension %zu is %" PRId64 ", but now is %zd",
7474
i,

0 commit comments

Comments
 (0)