Author: pdewacht-guest
Date: 2007-12-17 21:39:42 +0000 (Mon, 17 Dec 2007)
New Revision: 4991

Modified:
   software/ui/src/pkgbrowser.cpp
Log:
Fix display of popcon graphic.


Modified: software/ui/src/pkgbrowser.cpp
===================================================================
--- software/ui/src/pkgbrowser.cpp      2007-12-17 17:55:02 UTC (rev 4990)
+++ software/ui/src/pkgbrowser.cpp      2007-12-17 21:39:42 UTC (rev 4991)
@@ -304,7 +304,7 @@
        }
 
        int last_w = 0;
-       if (*str=='%' && ('0'<*str+1) && (*str+1)<'9')
+       if (*str=='%' && '0'<=str[1] && str[1]<='9')
        {
                char *after;
                /* int percent = */ strtol(str+1, &after, 10);
@@ -404,7 +404,7 @@
                if (!active_r()) lcol = fl_inactive(lcol);
                fl_color(lcol);
 
-               if (*str=='%' && ('0'<*str+1) && (*str+1)<'9')
+               if (*str=='%' && '0'<=str[1] && str[1]<='9')
                {
                        char *after;
                        int percent = strtol(str+1, &after, 10);


_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

Reply via email to