git: 4a787cd547ef - 2026Q3 - cad/OrcaSlicer: Fix 32-bit build
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 31 Jul 2026 07:33:49 UTC
The branch 2026Q3 has been updated by kenrap:
URL: https://cgit.FreeBSD.org/ports/commit/?id=4a787cd547ef9ac2f5631f04f64da91469a75bbc
commit 4a787cd547ef9ac2f5631f04f64da91469a75bbc
Author: Kenneth Raplee <kenrap@FreeBSD.org>
AuthorDate: 2026-07-31 02:09:39 +0000
Commit: Kenneth Raplee <kenrap@FreeBSD.org>
CommitDate: 2026-07-31 07:33:18 +0000
cad/OrcaSlicer: Fix 32-bit build
LayerResult's second field is typed size_t, so std::numeric_limits::max
should also use size_t and not something related to coordinates for the
layer_id.
Reported by: pkg-fallout
Approved by: arrowd (co-mentor)
(cherry picked from commit b403418f4721af9ec4b2158539536e19ee564150)
---
cad/OrcaSlicer/files/patch-src_libslic3r_GCode.hpp | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/cad/OrcaSlicer/files/patch-src_libslic3r_GCode.hpp b/cad/OrcaSlicer/files/patch-src_libslic3r_GCode.hpp
new file mode 100644
index 000000000000..d074cd3fa713
--- /dev/null
+++ b/cad/OrcaSlicer/files/patch-src_libslic3r_GCode.hpp
@@ -0,0 +1,11 @@
+--- src/libslic3r/GCode.hpp.orig 2025-03-01 00:00:00 UTC
++++ src/libslic3r/GCode.hpp
+@@ -176,7 +176,7 @@
+ // It is used for the pressure equalizer because it needs to buffer one layer back.
+ bool nop_layer_result { false };
+
+- static LayerResult make_nop_layer_result() { return {"", std::numeric_limits<coord_t>::max(), false, false, true}; }
++ static LayerResult make_nop_layer_result() { return {"", std::numeric_limits<size_t>::max(), false, false, true}; }
+ };
+
+ class GCode {