Skip to content

Commit ec385e9

Browse files
committed
build: fix int/size_t implicit cast
1 parent 4bc2a6d commit ec385e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cpu/reorder/simple_reorder.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ inline status_t get_quant_md(memory_desc_t &md, const int ndims,
191191
//
192192
// Offset is always concide with logical index because quantization entries
193193
// don't have a notion of physical formats.
194-
inline dim_t get_quant_off(const dims_t &input_idx, const int ndims,
194+
inline dim_t get_quant_off(const dims_t &input_idx, const size_t ndims,
195195
const int quant_mask, const dim_t g0, const dim_t g1,
196196
const memory_desc_t &quant_md) {
197197
dims_t quant_idx {};
@@ -2328,7 +2328,7 @@ struct simple_reorder_impl<SIMPLE_REORDER_TEMPL_CALL,
23282328

23292329
if (!need_second_pass) return status::success;
23302330

2331-
const int ndims = input_d.ndims();
2331+
const size_t ndims = input_d.ndims();
23322332
// Applied to the pre-last dimension.
23332333
const auto src_scales_group0
23342334
= sc_src.ndims_ > 0 ? sc_src.group_dims_[0] : 1;

0 commit comments

Comments
 (0)