diff --git a/xs/src/libslic3r/Geometry.cpp b/xs/src/libslic3r/Geometry.cpp index 31a6dfb22..e6354a869 100644 --- a/xs/src/libslic3r/Geometry.cpp +++ b/xs/src/libslic3r/Geometry.cpp @@ -504,7 +504,7 @@ arrange(size_t total_parts, const Pointf &part_size, coordf_t dist, const Boundi } cellsorder.insert(cellsorder.begin() + low, ArrangeItemIndex(index, c)); } - ENDSORT: true; + ENDSORT: ; } } diff --git a/xs/xsp/BoundingBox.xsp b/xs/xsp/BoundingBox.xsp index fd07713f2..f6e35e0df 100644 --- a/xs/xsp/BoundingBox.xsp +++ b/xs/xsp/BoundingBox.xsp @@ -29,7 +29,7 @@ long x_max() %code{% RETVAL = THIS->max.x; %}; long y_min() %code{% RETVAL = THIS->min.y; %}; long y_max() %code{% RETVAL = THIS->max.y; %}; - std::string serialize() %code{% char buf[2048]; sprintf(buf, "%d,%d;%d,%d", THIS->min.x, THIS->min.y, THIS->max.x, THIS->max.y); RETVAL = buf; %}; + std::string serialize() %code{% char buf[2048]; sprintf(buf, "%ld,%ld;%ld,%ld", THIS->min.x, THIS->min.y, THIS->max.x, THIS->max.y); RETVAL = buf; %}; %{ diff --git a/xs/xsp/Point.xsp b/xs/xsp/Point.xsp index e1467143c..d0f9260c7 100644 --- a/xs/xsp/Point.xsp +++ b/xs/xsp/Point.xsp @@ -49,7 +49,7 @@ %code{% RETVAL = new Point(THIS->negative()); %}; bool coincides_with_epsilon(Point* point) %code{% RETVAL = THIS->coincides_with_epsilon(*point); %}; - std::string serialize() %code{% char buf[2048]; sprintf(buf, "%d,%d", THIS->x, THIS->y); RETVAL = buf; %}; + std::string serialize() %code{% char buf[2048]; sprintf(buf, "%ld,%ld", THIS->x, THIS->y); RETVAL = buf; %}; %{ @@ -87,7 +87,7 @@ Point::coincides_with(point_sv) %code{% RETVAL = THIS->y; %}; long z() %code{% RETVAL = THIS->z; %}; - std::string serialize() %code{% char buf[2048]; sprintf(buf, "%d,%d,%d", THIS->x, THIS->y, THIS->z); RETVAL = buf; %}; + std::string serialize() %code{% char buf[2048]; sprintf(buf, "%ld,%ld,%ld", THIS->x, THIS->y, THIS->z); RETVAL = buf; %}; }; %name{Slic3r::Pointf} class Pointf {