Browse Source

!15566 add const for wrapper

From: @zhujingxuan
Reviewed-by: @wangchengyuan,@hangangqiang
Signed-off-by: @wangchengyuan
pull/15566/MERGE
mindspore-ci-bot Gitee 5 years ago
parent
commit
d5f409a677
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/lite/micro/coder/wrapper/base/detection_post_process_base_wrapper.c

+ 1
- 1
mindspore/lite/micro/coder/wrapper/base/detection_post_process_base_wrapper.c View File

@@ -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;


Loading…
Cancel
Save