mirror of https://gitee.com/bigwinds/arangodb
Fixing issue
This commit is contained in:
parent
b91ffaecf6
commit
d0f9ea5138
|
@ -53,7 +53,7 @@ struct SLPA : public SimpleAlgorithm<SLPAValue, int8_t, uint64_t> {
|
||||||
}
|
}
|
||||||
field = userParams.get("maxCommunities");
|
field = userParams.get("maxCommunities");
|
||||||
if (field.isInteger()) {
|
if (field.isInteger()) {
|
||||||
_threshold = (unsigned)std::min(32ULL, std::max(field.getUInt(), 0ULL));
|
_threshold = (unsigned)std::min((uint64_t)32, std::max(field.getUInt(), (uint64_t)0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue