Replaced all "long long" types with int64_t

Replaced all "unsigned long long" types with uint64_t.
These "new" types better communicate their meaning and they are
guaranteed to behave the same on all platforms & compilers.
This commit is contained in:
Vojtech Bubnik 2020-12-10 08:40:08 +01:00
parent fbf2978190
commit bd79036d13
9 changed files with 52 additions and 45 deletions

View file

@ -1,6 +1,7 @@
#include <unordered_set>
#include <unordered_map>
#include <random>
#include <cstdint>
#include "sla_test_utils.hpp"
@ -63,7 +64,7 @@ TEST_CASE("Support point generator should be deterministic if seeded",
point_gen.execute(slices, slicegrid);
auto get_chksum = [](const std::vector<sla::SupportPoint> &pts){
long long chksum = 0;
int64_t chksum = 0;
for (auto &pt : pts) {
auto p = scaled(pt.pos);
chksum += p.x() + p.y() + p.z();
@ -72,7 +73,7 @@ TEST_CASE("Support point generator should be deterministic if seeded",
return chksum;
};
long long checksum = get_chksum(point_gen.output());
int64_t checksum = get_chksum(point_gen.output());
size_t ptnum = point_gen.output().size();
REQUIRE(point_gen.output().size() > 0);