git: 4a787cd547ef - 2026Q3 - cad/OrcaSlicer: Fix 32-bit build

Kenneth Raplee <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <[email protected]>
The branch 2026Q3 has been updated by kenrap:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4a787cd547ef9ac2f5631f04f64da91469a75bbc

commit 4a787cd547ef9ac2f5631f04f64da91469a75bbc
Author:     Kenneth Raplee <[email protected]>
AuthorDate: 2026-07-31 02:09:39 +0000
Commit:     Kenneth Raplee <[email protected]>
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 {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.