提交 7e30e1b5 编写于 作者: wmmhello's avatar wmmhello

refactor:merge from 3.0

上级 1e0c2fb0
......@@ -147,7 +147,7 @@ static int smlCompareKv(const void* p1, const void* p2) {
SSmlKv* kv2 = (SSmlKv*)p2;
int32_t kvLen1 = kv1->keyLen;
int32_t kvLen2 = kv2->keyLen;
int32_t res = strncasecmp(kv1->key, kv2->key, MIN(kvLen1, kvLen2));
int32_t res = strncasecmp(kv1->key, kv2->key, TMIN(kvLen1, kvLen2));
if (res != 0) {
return res;
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册