From eb569602a5a7bafde83f2cb5cad84d38dac0377c Mon Sep 17 00:00:00 2001 From: infirit Date: Fri, 19 Dec 2014 01:13:04 +0100 Subject: Fixed unsigned overflow error (use guint64 instead of unsigned). Taken from GSM commit: 74ba377a5a7d4787595e1b46c1e880426584a2fd From: Robert Roth Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=681553 --- src/load-graph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/load-graph.cpp b/src/load-graph.cpp index 15c132e..def0381 100644 --- a/src/load-graph.cpp +++ b/src/load-graph.cpp @@ -132,7 +132,7 @@ static void draw_background(LoadGraph *graph) { gdk_cairo_set_source_color (cr, &style->fg[GTK_STATE_NORMAL]); if (graph->type == LOAD_GRAPH_NET) { // operation orders matters so it's 0 if i == num_bars - unsigned rate = graph->net.max - (i * graph->net.max / num_bars); + guint64 rate = graph->net.max - (i * graph->net.max / num_bars); const std::string caption(procman::format_network_rate(rate, graph->net.max)); pango_layout_set_text (layout, caption.c_str(), -1); pango_layout_get_extents (layout, NULL, &extents); -- cgit v1.2.1