1
0
Fork 0

Fixing issue

This commit is contained in:
Simon Grätzer 2017-05-17 14:17:03 +02:00
parent b91ffaecf6
commit d0f9ea5138
1 changed files with 1 additions and 1 deletions

View File

@ -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));
} }
} }