Skip to content

Commit

Permalink
src: cpu: rnn: fix potential integer overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mgouicem committed Aug 12, 2019
1 parent ce5dedf commit 35c5f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpu/rnn/ref_rnn.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ struct _ref_rnn_common_t : public cpu_primitive_t {

// initialize the workspace_pd if needed
if (rnn_.is_training) {
dims_t ws_dims = {(int)ws_sz};
dims_t ws_dims = { (dim_t)ws_sz };
memory_desc_t ws_d;
mkldnn_memory_desc_init(&ws_d, 1, ws_dims, data_type::u8, x);
this->ws_pd_ = cpu_memory_t::pd_t(this->engine(), &ws_d);
Expand Down

0 comments on commit 35c5f8a

Please sign in to comment.