From b237fdf90ae84f5a72c57b17e7af5b4c22b431ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Wed, 29 Jul 2009 00:20:38 +0000 Subject: [PATCH] Fixed warnings. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31880 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/debuganalyzer/gui/chart/LegendChartAxis.cpp | 4 ++-- src/apps/debuganalyzer/gui/main_window/SchedulingPage.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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;