Core: Fixed CoIsRangeEqual to compile with CLANG

git-svn-id: svn://ultimatepp.org/upp/trunk@10498 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-11-28 07:40:35 +00:00
parent 3ae376b477
commit 1fedd2cea8

View file

@ -220,7 +220,7 @@ int CoIsEqualRange(const Range1& r1, const Range2& r2)
int count = r1.GetCount();
if(r1.GetCount() != r2.GetCount())
return false;
std::atomic<bool> equal = true;
std::atomic<bool> equal(true);
CoPartition(0, r1.GetCount(),
[=, &equal, &r1, &r2](int i, int e) {
while(i < e && equal) {