From 0fcb8131bd6ad756870de43289adf7a8bbf878a6 Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt <eblomfel@trolltech.com> Date: Wed, 3 Dec 2008 10:16:16 +0100 Subject: [PATCH] Compile on MSVC 2003 Help the compiler pick the correct overload for the call to pow(). --- src/plugins/vcsbase/baseannotationhighlighter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/vcsbase/baseannotationhighlighter.cpp b/src/plugins/vcsbase/baseannotationhighlighter.cpp index 5b02bc9ea1a..167c1d7d31b 100644 --- a/src/plugins/vcsbase/baseannotationhighlighter.cpp +++ b/src/plugins/vcsbase/baseannotationhighlighter.cpp @@ -69,7 +69,7 @@ void BaseAnnotationHighlighter::setChangeNumbers(const ChangeNumbers &changeNumb // Assign a color gradient to annotation change numbers. Give // each change number a unique color. const double oneThird = 1.0 / 3.0; - const int step = qRound(ceil(pow(changeNumbers.count(), oneThird))); + const int step = qRound(ceil(pow(double(changeNumbers.count()), oneThird))); QList<QColor> colors; const int factor = 255 / step; for (int i=0; i<step; ++i) -- GitLab