diff --git a/src/apps/debuganalyzer/gui/chart/LegendChartAxis.cpp b/src/apps/debuganalyzer/gui/chart/LegendChartAxis.cpp index 702204061d..035f3d1326 100644 --- a/src/apps/debuganalyzer/gui/chart/LegendChartAxis.cpp +++ b/src/apps/debuganalyzer/gui/chart/LegendChartAxis.cpp @@ -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)); } diff --git a/src/apps/debuganalyzer/gui/main_window/SchedulingPage.cpp b/src/apps/debuganalyzer/gui/main_window/SchedulingPage.cpp index 40fff6087d..f3dde04a6f 100644 --- a/src/apps/debuganalyzer/gui/main_window/SchedulingPage.cpp +++ b/src/apps/debuganalyzer/gui/main_window/SchedulingPage.cpp @@ -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;