[mythtv] [PATCH] mythmusic mythgoom.cpp amd64 warnings

Robert Tsai rtsai1111 at comcast.net
Sat Apr 9 05:32:11 UTC 2005


% cvs diff -du mythmusic/goom/mythgoom.cpp
Index: mythmusic/goom/mythgoom.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythmusic/mythmusic/goom/mythgoom.cpp,v
retrieving revision 1.8
diff -d -u -r1.8 mythgoom.cpp
--- mythmusic/goom/mythgoom.cpp 21 Jan 2005 07:59:26 -0000      1.8
+++ mythmusic/goom/mythgoom.cpp 8 Apr 2005 22:24:33 -0000
@@ -129,22 +129,22 @@
         int sw2 = surface->pitch;
         int swd = sw2 - sw * scalew;

-        int fin = (int)s;
-        int fd = (int)d + (sw2 * size.height());
+        long fin = (long)s;
+        long fd = (long)d + (sw2 * size.height());

-        while ((int)d < fd) {
+        while ((long)d < fd) {
             fin += sw;
             if (scalew == 2)
             {
-                while ((int)s < fin) {
-                    register int col = *(s++);
+                while ((long)s < fin) {
+                    register long col = *(s++);
                     *(d++) = col; *(d++) = col;
                 }
             }
             else
             {
-                while ((int)s < fin) {
-                    register int col = *(s++);
+                while ((long)s < fin) {
+                    register long col = *(s++);
                     *(d++) = col;
                 }
             }

--Rob


More information about the mythtv-dev mailing list