From 555b11c26094bafa5e450d8ad70b72a8fcbea10f Mon Sep 17 00:00:00 2001 From: William Cohen Date: Mon, 20 Apr 2009 14:45:24 -0400 Subject: Have appropriate types and cast to allow compilation on RHEL-5. --- grapher/GraphWidget.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'grapher/GraphWidget.cxx') diff --git a/grapher/GraphWidget.cxx b/grapher/GraphWidget.cxx index 5186c471..a82a8bb6 100644 --- a/grapher/GraphWidget.cxx +++ b/grapher/GraphWidget.cxx @@ -85,8 +85,8 @@ namespace systemtap } if (_autoScaling) { - // line separation - int linesPossible = width / (_lineWidth + 2); + // line separation + int linesPossible = width / ((int)_lineWidth + 2); // Find latest time. double latestTime = 0; for (DatasetList::iterator ditr = _datasets.begin(), @@ -223,9 +223,9 @@ namespace systemtap cr->move_to(20.0, height); cr->line_to(graphWidth, height); cr->stroke(); - std::vector dash(1); + std::valarray dash(1); dash[0] = height / 10; - cr->set_dash(dash, 0); + cr->set_dash(dash, 0.0); for (double tickVal = startTime; tickVal < _right; tickVal += majorUnit) { cr->move_to((tickVal - _left) * horizScale + 20.0, graphHeight - 5); -- cgit