Avoid compile warning of narrowing uint32_t (#2429)
author김용섭/동작제어Lab(SR)/Engineer/삼성전자 <yons.kim@samsung.com>
Thu, 23 Aug 2018 04:44:59 +0000 (13:44 +0900)
committer박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Thu, 23 Aug 2018 04:44:59 +0000 (13:44 +0900)
When compilation.cc is compiled, warning message prints about narrowing
uint32_t -> int32_t. The code doesn't matter whether the vars are uint32_t
or int32_t.

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
runtimes/pure_arm_compute/src/compilation.cc

index 789011f..3803d8f 100644 (file)
@@ -1959,7 +1959,7 @@ void Planner::visit(const ::internal::tflite::op::FullyConnected::Node &node)
   const auto num_output = _ctx.at(weight_index).shape().dim(0);
   const auto input_size = _ctx.at(weight_index).shape().dim(1);
 
-  uint32_t C, N, H, W;
+  int32_t C, N, H, W;
   if (_ctx.at(input_index).shape().rank() == 2)
   {
     nnfw::util::matrix::Shape ifm_shape_matrix;