Apply suggestions from code review

Co-Authored-By: Mat M. <mathew1800@gmail.com>
This commit is contained in:
Hamish Milne 2020-03-29 11:39:46 +01:00 committed by GitHub
parent 841255cd16
commit 8f059ae398
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 23 additions and 22 deletions

View file

@ -19,7 +19,7 @@ void load(Archive& ar, boost::container::flat_set<T>& set, const unsigned int fi
u64 count{};
ar >> count;
set.clear();
for (auto i = 0; i < count; i++) {
for (u64 i = 0; i < count; i++) {
T value{};
ar >> value;
set.insert(value);