gitview: Fix DeprecationWarning
authorAneesh Kumar <aneesh.kumar@gmail.com>
Fri, 24 Feb 2006 08:32:32 +0000 (14:02 +0530)
committerJunio C Hamano <junkio@cox.net>
Fri, 24 Feb 2006 11:14:34 +0000 (03:14 -0800)
DeprecationWarning: integer argument expected, got float

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
contrib/gitview/gitview

index b04df74162b7d56f181612c2d25c16fe31497291..4a6b44842d5e8b78e88e8e48d2f29316c7238edd 100755 (executable)
@@ -154,7 +154,7 @@ class CellRendererGraph(gtk.GenericCellRenderer):
 
                cols = self.node[0]
                for start, end, colour in self.in_lines + self.out_lines:
-                       cols = max(cols, start, end)
+                       cols = int(max(cols, start, end))
 
                (column, colour, names) = self.node
                names_len = 0