summaryrefslogtreecommitdiffstats
path: root/src/helper/png-write.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2007-12-05 06:01:15 +0000
committerjoncruz <joncruz@users.sourceforge.net>2007-12-05 06:01:15 +0000
commit6770db9e0d85349552efd0d2f18359462ede53a9 (patch)
tree8956c38c6e97e5bd615f885a87db6ff5bd7aab98 /src/helper/png-write.cpp
parentAdd entry fields for x/y coordinates of selected nodes (fixes bugs #170116 an... (diff)
downloadinkscape-6770db9e0d85349552efd0d2f18359462ede53a9.tar.gz
inkscape-6770db9e0d85349552efd0d2f18359462ede53a9.zip
warning cleanup
(bzr r4175)
Diffstat (limited to 'src/helper/png-write.cpp')
-rw-r--r--src/helper/png-write.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/helper/png-write.cpp b/src/helper/png-write.cpp
index 2128abd39..6156f60e6 100644
--- a/src/helper/png-write.cpp
+++ b/src/helper/png-write.cpp
@@ -216,8 +216,8 @@ sp_export_get_rows(guchar const **rows, int row, int num_rows, void *data)
if (!ebp->status((float) row / ebp->height, ebp->data)) return 0;
}
- num_rows = MIN(num_rows, ebp->sheight);
- num_rows = MIN(num_rows, ebp->height - row);
+ num_rows = MIN(num_rows, static_cast<int>(ebp->sheight));
+ num_rows = MIN(num_rows, static_cast<int>(ebp->height - row));
/* Set area of interest */
// bbox is now set to the entire image to prevent discontinuities
@@ -242,7 +242,7 @@ sp_export_get_rows(guchar const **rows, int row, int num_rows, void *data)
for (int r = 0; r < num_rows; r++) {
guchar *p = NR_PIXBLOCK_PX(&pb) + r * pb.rs;
- for (int c = 0; c < ebp->width; c++) {
+ for (int c = 0; c < static_cast<int>(ebp->width); c++) {
*p++ = ebp->r;
*p++ = ebp->g;
*p++ = ebp->b;