Skip to content

Commit 6bfad8b

Browse files
committed
Fix -Wformat issues from #8612
Built locally with -Wformat -Werror=format on a recent version of clang. (Apparently, clang12 which we use on CI is not new enough?) ghstack-source-id: d676877 ghstack-comment-id: 2940815253 Pull-Request-resolved: #11360
1 parent a2b22fd commit 6bfad8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/core/exec_aten/testing_util/tensor_factory.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,8 +624,8 @@ inline void validate_strides(
624624
if ((strides[i] == strides[j])) {
625625
ET_CHECK_MSG(
626626
false,
627-
"Stride value and size dont comply at index %d."
628-
" strides[%d]: %d, strides[%d] = %d, sizes[%d] = %d, sizes[%d] = %d",
627+
"Stride value and size dont comply at index %lu."
628+
" strides[%lu]: %d, strides[%d] = %d, sizes[%lu] = %d, sizes[%d] = %d",
629629
i,
630630
i,
631631
strides[i],

0 commit comments

Comments
 (0)