From 449c8689d1d70b82d0fe6badd7dccef3ca737ac4 Mon Sep 17 00:00:00 2001 From: zhujingxuan Date: Fri, 23 Apr 2021 10:23:22 +0800 Subject: [PATCH] add const --- .../coder/wrapper/base/detection_post_process_base_wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindspore/lite/micro/coder/wrapper/base/detection_post_process_base_wrapper.c b/mindspore/lite/micro/coder/wrapper/base/detection_post_process_base_wrapper.c index 2edc36061d7..dbff657f26b 100644 --- a/mindspore/lite/micro/coder/wrapper/base/detection_post_process_base_wrapper.c +++ b/mindspore/lite/micro/coder/wrapper/base/detection_post_process_base_wrapper.c @@ -33,7 +33,7 @@ static inline bool compare(int i, int j, const float *scores) { static void heapify(const float *scores, int *indexes, int n, int i) { while (i < n) { int cur = i; - int l = 2 * i + 1; + const int l = 2 * i + 1; const int r = 2 * i + 2; if (r < n && compare(indexes[cur], indexes[r], scores)) { cur = r;