Skip to content

Commit 8c96805

Browse files
authored
executorch/examples/portable/custom_ops/custom_ops_2_out.cpp: fix llvm-17-exposed format mismatches
Differential Revision: D64656845 Pull Request resolved: #6368
1 parent 5d7bd71 commit 8c96805

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/portable/custom_ops/custom_ops_2_out.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ namespace {
1919
void check_preconditions(const Tensor& in, Tensor& out) {
2020
ET_CHECK_MSG(
2121
out.scalar_type() == ScalarType::Float,
22-
"Expected out tensor to have dtype Float, but got %hhd instead",
23-
out.scalar_type());
22+
"Expected out tensor to have dtype Float, but got %d instead",
23+
static_cast<int>(out.scalar_type()));
2424
ET_CHECK_MSG(
2525
in.scalar_type() == ScalarType::Float,
26-
"Expected in tensor to have dtype Float, but got %hhd instead",
27-
in.scalar_type());
26+
"Expected in tensor to have dtype Float, but got %d instead",
27+
static_cast<int>(in.scalar_type()));
2828
ET_CHECK_MSG(
2929
out.dim() == in.dim(),
3030
"Number of dims of out tensor is not compatible with inputs");

0 commit comments

Comments
 (0)