Add new sharetable

This commit is contained in:
Cloud Wu
2019-04-17 21:30:47 +08:00
committed by 云风
parent 2ceb642b5d
commit 76b166f04a
8 changed files with 392 additions and 3 deletions

View File

@@ -509,7 +509,7 @@ exist(struct ssm_ref *r, TString *s) {
TString *t = r->array[mid];
if (t == s)
return 1;
if (s > t)
if (memcmp(&s,&t,sizeof(TString *)) > 0)
begin = mid + 1;
else
end = mid - 1;