[3dprinter-general] Bug#1040252: cura-engine FTBFS on some 32bit architectures
Gregor Riepl
onitake at gmail.com
Sat Jul 8 13:19:46 BST 2023
This is actually a bug in the test and not CuraEngine.
In tests/InfillTest.cpp:104, they format a size_t as %lld instead of
%zu. %llu works as well, but it's not 100% correct with a 32-bit size_t.
Current upstream HEAD still has the bug, so I'm going to report it there
as well:
https://github.com/Ultimaker/CuraEngine/blob/main/tests/InfillTest.cpp#L103
Patch:
diff --git a/tests/InfillTest.cpp b/tests/InfillTest.cpp
index 23b083f5..6f39b708 100644
--- a/tests/InfillTest.cpp
+++ b/tests/InfillTest.cpp
@@ -100,7 +100,7 @@ namespace cura
result_lines(result_lines),
result_polygons(result_polygons)
{
- name =
makeName("InfillTestParameters_P%d_Z%d_C%d_L%lld__%lld",
(int)params.pattern, (int)params.zig_zagify,
(int)params.connect_polygons, params.line_distance, test_polygon_id);
+ name =
makeName("InfillTestParameters_P%d_Z%d_C%d_L%lld__%zu",
(int)params.pattern, (int)params.zig_zagify,
(int)params.connect_polygons, params.line_distance, test_polygon_id);
}
friend std::ostream& operator<<(std::ostream& os, const
InfillTestParameters& params)
More information about the 3dprinter-general
mailing list