[aseprite] 214/250: Fix comparison between signed/unsigned ints

Tobias Hansen thansen at moszumanska.debian.org
Sun Dec 20 15:27:32 UTC 2015


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit 24306589f0594b9d7c184f1632f91bd5aa0d5ef4
Author: David Capello <davidcapello at gmail.com>
Date:   Thu Oct 29 16:22:03 2015 -0300

    Fix comparison between signed/unsigned ints
---
 src/app/tools/controllers.h  |  2 +-
 src/app/tools/intertwiners.h | 16 ++++++++--------
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/app/tools/controllers.h b/src/app/tools/controllers.h
index e6e176f..4601b34 100644
--- a/src/app/tools/controllers.h
+++ b/src/app/tools/controllers.h
@@ -397,7 +397,7 @@ public:
 
     switch (m_clickCounter) {
       case 0:
-        for (size_t i=1; i<stroke.size(); ++i)
+        for (int i=1; i<stroke.size(); ++i)
           stroke[i] = point;
         break;
       case 1:
diff --git a/src/app/tools/intertwiners.h b/src/app/tools/intertwiners.h
index 0742a79..4f21937 100644
--- a/src/app/tools/intertwiners.h
+++ b/src/app/tools/intertwiners.h
@@ -12,7 +12,7 @@ class IntertwineNone : public Intertwine {
 public:
 
   void joinStroke(ToolLoop* loop, const Stroke& stroke) override {
-    for (size_t c=0; c<stroke.size(); ++c)
+    for (int c=0; c<stroke.size(); ++c)
       doPointshapePoint(stroke[c].x, stroke[c].y, loop);
   }
 
@@ -79,7 +79,7 @@ public:
       doPointshapePoint(stroke[0].x, stroke[0].y, loop);
     }
     else if (stroke.size() >= 2) {
-      for (size_t c=0; c+1<stroke.size(); ++c) {
+      for (int c=0; c+1<stroke.size(); ++c) {
         int x1 = stroke[c].x;
         int y1 = stroke[c].y;
         int x2 = stroke[c+1].x;
@@ -107,7 +107,7 @@ public:
       return;
     }
 
-    for (size_t c=0; c+1<stroke.size(); ++c) {
+    for (int c=0; c+1<stroke.size(); ++c) {
       int x1 = stroke[c].x;
       int y1 = stroke[c].y;
       int x2 = stroke[c+1].x;
@@ -135,7 +135,7 @@ public:
       doPointshapePoint(stroke[0].x, stroke[0].y, loop);
     }
     else if (stroke.size() >= 2) {
-      for (size_t c=0; c+1<stroke.size(); ++c) {
+      for (int c=0; c+1<stroke.size(); ++c) {
         int x1 = stroke[c].x;
         int y1 = stroke[c].y;
         int x2 = stroke[c+1].x;
@@ -156,7 +156,7 @@ public:
       return;
     }
 
-    for (size_t c=0; c+1<stroke.size(); ++c) {
+    for (int c=0; c+1<stroke.size(); ++c) {
       int x1 = stroke[c].x;
       int y1 = stroke[c].y;
       int x2 = stroke[c+1].x;
@@ -178,7 +178,7 @@ public:
     if (stroke.size() == 0)
       return;
 
-    for (size_t c=0; c<stroke.size(); c += 4) {
+    for (int c=0; c<stroke.size(); c += 4) {
       if (stroke.size()-c == 1) {
         doPointshapePoint(stroke[c].x, stroke[c].y, loop);
       }
@@ -240,7 +240,7 @@ public:
     else {
       PPData data(m_pts, loop);
 
-      for (size_t c=0; c+1<stroke.size(); ++c) {
+      for (int c=0; c+1<stroke.size(); ++c) {
         algo_line(
           stroke[c].x,
           stroke[c].y,
@@ -251,7 +251,7 @@ public:
       }
     }
 
-    for (size_t c=0; c<m_pts.size(); ++c) {
+    for (int c=0; c<m_pts.size(); ++c) {
       // We ignore a pixel that is between other two pixels in the
       // corner of a L-like shape.
       if (c > 0 && c+1 < m_pts.size()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list