summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2020-11-24 19:13:20 +0600
committerliuxueli <[email protected]>2020-11-24 19:13:20 +0600
commitc18fe6e945f59c4d23069a6a4c4845b16f8cc88c (patch)
tree47f6478c5495b194b4835b8579d46e50780708fb
parentb549f40a5c4b2f593f5a70ab9b229f78eaeca1e7 (diff)
修复返回错误命中个数的BUGv3.1.4
-rw-r--r--src/entry/Maat_api.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entry/Maat_api.cpp b/src/entry/Maat_api.cpp
index 639266e..29cfa97 100644
--- a/src/entry/Maat_api.cpp
+++ b/src/entry/Maat_api.cpp
@@ -273,7 +273,7 @@ int region_compile(_Maat_feather_t*feather, struct Maat_hierarchy_compile_mid* c
alignment_int64_array_add(feather->not_grp_hit_cnt, thread_num, 1);
}
- return scan_ret;
+ return MIN(scan_ret, size);
}