Skip to content

Commit f725743

Browse files
committed
static_cast
1 parent 889a1a9 commit f725743

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onnxruntime/test/contrib_ops/gather_block_quantized_op_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ void RunUnpackedData(
194194
// Make a copy to avoid modifying the original unpacked data.
195195
std::vector<int> packed_data = unpacked_data;
196196
std::vector<int64_t> packed_data_shape = unpacked_data_shape;
197-
PackDataForUint8TypeIfNecessary<T1>(packed_data, packed_data_shape, bits);
197+
PackDataForUint8TypeIfNecessary<T1>(packed_data, packed_data_shape, static_cast<int>(bits));
198198

199199
auto expect_result = expect_success ? OpTester::ExpectResult::kExpectSuccess : OpTester::ExpectResult::kExpectFailure;
200200
if (zero_points.empty()) {
@@ -220,7 +220,7 @@ void RunUnpackedData(
220220
// Make a copy to avoid modifying the original unpacked data.
221221
std::vector<int> packed_zero_point = zero_points;
222222
std::vector<int64_t> packed_zero_point_shape = scales_shape;
223-
PackDataForUint8TypeIfNecessary<T1>(packed_zero_point, packed_zero_point_shape, bits);
223+
PackDataForUint8TypeIfNecessary<T1>(packed_zero_point, packed_zero_point_shape, static_cast<int>(bits));
224224

225225
RunGatherBlockQuantized(ToType<T1>(packed_data),
226226
packed_data_shape,

0 commit comments

Comments
 (0)