Skip to content

Commit

Permalink
Add an explicit cast to fix clang build failure.
Browse files Browse the repository at this point in the history
Change-Id: I8694e48984048acf98f556e8ea6ce0e2974c5a7c
  • Loading branch information
zpgong committed Dec 2, 2024
1 parent 25350d0 commit bdf8dfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion containers/fed_sql/sensitive_columns.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ absl::Status HashColumn(TensorColumn& column, absl::string_view key) {

FCP_ASSIGN_OR_RETURN(
Tensor hashed_tensor,
Tensor::Create(column.tensor_.dtype(), {column.tensor_.num_elements()},
Tensor::Create(column.tensor_.dtype(),
{static_cast<int64_t>(column.tensor_.num_elements())},
std::move(hashed_column)));
column.tensor_ = std::move(hashed_tensor);
return absl::OkStatus();
Expand Down

0 comments on commit bdf8dfb

Please sign in to comment.