Signed-off-by: Y7n05h <Y7n05h@protonmail.com>
LuaArray<vector<boost::variant<string,double>>> ret;
ret.reserve(std::min(rcounts.size(), static_cast<size_t>(top + 1U)));
- uint64_t count = 1;
+ int count = 1;
unsigned int rest = 0;
for (const auto& rc : rcounts) {
- if (count == top+1) {
+ if (count == static_cast<int>(top + 1)) {
rest+=rc.first;
}
else {
});
std::unordered_map<int, vector<boost::variant<string,double>>> ret;
uint64_t rest = 0;
- unsigned int count = 1;
+ int count = 1;
for(const auto& rc : rcounts) {
- if(count==numentries+1) {
+ if (count == static_cast<int>(numentries + 1)) {
rest+=rc.first;
}
else {