mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-20 15:21:21 -06:00
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:
parent
fbf2978190
commit
bd79036d13
9 changed files with 52 additions and 45 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue