diff options
author | bubnikv <bubnikv@gmail.com> | 2016-11-17 00:09:00 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2016-11-17 00:09:00 +0300 |
commit | c3af18904552ca222ecb847c2f24065b8a1bf7b8 (patch) | |
tree | 35df916ab6e66f5a7ef123cac8bfaf600d8f7a6b | |
parent | 901ec0ad37125778136c23206827ac525d62d958 (diff) |
Reduced some compiler warnings.
-rw-r--r-- | xs/src/libslic3r/Geometry.cpp | 2 | ||||
-rw-r--r-- | xs/xsp/BoundingBox.xsp | 2 | ||||
-rw-r--r-- | xs/xsp/Point.xsp | 4 |
3 files changed, 4 insertions, 4 deletions
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 { |