Fix wrong init order in constructor of conv_sgemm_multithreads (#9775)
author이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 <sg5.lee@samsung.com>
Thu, 2 Jan 2020 04:37:32 +0000 (13:37 +0900)
committerChunseok Lee <chunseok.lee@samsung.com>
Fri, 3 Jan 2020 07:01:43 +0000 (16:01 +0900)
It fixes warning of wrong order member initialization.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
compute/ncnn/src/srcn/conv_sgemm_multithreads.cc

index 9946b6f..21083f6 100644 (file)
@@ -147,7 +147,7 @@ conv_sgemm_multithreads::conv_sgemm_multithreads(const convMat_t &in_mat,
                                                  convType_t conv_type)
 
     : in_mat_(in_mat), weights_mat_(weights_mat), out_mat_(out_mat), in_param_(in_param),
-      num_threads_(num_threads), conv_type_(conv_type)
+      conv_type_(conv_type), num_threads_(num_threads)
 {
   m_ = out_mat_.c;
 #ifdef NCNN