summaryrefslogtreecommitdiffstats
path: root/grapher/GraphWidget.cxx
diff options
context:
space:
mode:
authorWilliam Cohen <wcohen@redhat.com>2009-04-20 14:45:24 -0400
committerWilliam Cohen <wcohen@redhat.com>2009-04-20 14:45:24 -0400
commit555b11c26094bafa5e450d8ad70b72a8fcbea10f (patch)
treefdb38e1459bf377fcf2482fb7b73c6f620708ff2 /grapher/GraphWidget.cxx
parent764b562f42c6ac7f02e0911cab47f87c827bf3bd (diff)
downloadsystemtap-steved-555b11c26094bafa5e450d8ad70b72a8fcbea10f.tar.gz
systemtap-steved-555b11c26094bafa5e450d8ad70b72a8fcbea10f.tar.xz
systemtap-steved-555b11c26094bafa5e450d8ad70b72a8fcbea10f.zip
Have appropriate types and cast to allow compilation on RHEL-5.
Diffstat (limited to 'grapher/GraphWidget.cxx')
-rw-r--r--grapher/GraphWidget.cxx8
1 files changed, 4 insertions, 4 deletions
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<double> dash(1);
+ std::valarray<double> 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);