mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-21 13:47:59 -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 <catch_main.hpp>
|
||||
|
||||
#include <fstream>
|
||||
#include <cstdint>
|
||||
|
||||
#include <libnest2d/libnest2d.hpp>
|
||||
#include "printer_parts.hpp"
|
||||
|
@ -472,7 +473,7 @@ TEST_CASE("ArrangeRectanglesLoose", "[Nesting]")
|
|||
namespace {
|
||||
using namespace libnest2d;
|
||||
|
||||
template<long long SCALE = 1, class It>
|
||||
template<int64_t SCALE = 1, class It>
|
||||
void exportSVG(const char *loc, It from, It to) {
|
||||
|
||||
static const char* svg_header =
|
||||
|
@ -512,7 +513,7 @@ R"raw(<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|||
// }
|
||||
}
|
||||
|
||||
template<long long SCALE = 1>
|
||||
template<int64_t SCALE = 1>
|
||||
void exportSVG(std::vector<std::reference_wrapper<Item>>& result, int idx = 0) {
|
||||
exportSVG((std::string("out") + std::to_string(idx) + ".svg").c_str(),
|
||||
result.begin(), result.end());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue