Fixed warnings.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31880 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2009-07-29 00:20:38 +00:00
parent c654cca5b4
commit b237fdf90a
2 changed files with 3 additions and 3 deletions

View File

@ -403,6 +403,6 @@ LegendChartAxis::_EstimateMaxLegendCount(BView* view, BSize size,
// estimate the maximum legend count we might need
if (fLocation == CHART_AXIS_LEFT || fLocation == CHART_AXIS_RIGHT)
return (size.IntegerHeight() + 1) / (10 + *_vSpacing);
return (size.IntegerWidth() + 1) / (20 + *_hSpacing);
return (int32)((size.IntegerHeight() + 1) / (10 + *_vSpacing));
return (int32)((size.IntegerWidth() + 1) / (20 + *_hSpacing));
}

View File

@ -520,7 +520,7 @@ printf("failed to read event!\n");
float scrollOffset = _ScrollOffset();
double timeForX = (scrollOffset + x) * fUSecsPerPixel;
double factor = 4;
uint32 factor = 4;
if (steps < 0) {
steps = -steps;
factor = 1;