[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [amarok] src/dynamic/biases: Fix building on arm* architectures.
From: Modestas Vainius <modax () debian ! org>
Date: 2011-07-24 21:01:06
Message-ID: 20110724210106.E0A7FA60A6 () git ! kde ! org
[Download RAW message or body]
Git commit 8e5fe76cfefa5a17e969953f4f8249617c77a561 by Modestas Vainius.
Committed on 24/07/2011 at 22:58.
Pushed by modax into branch 'master'.
Fix building on arm* architectures.
... where qreal is float.
M +1 -1 src/dynamic/biases/PartBias.cpp
http://commits.kde.org/amarok/8e5fe76cfefa5a17e969953f4f8249617c77a561
diff --git a/src/dynamic/biases/PartBias.cpp b/src/dynamic/biases/PartBias.cpp
index 96fdedc..2047b7f 100644
--- a/src/dynamic/biases/PartBias.cpp
+++ b/src/dynamic/biases/PartBias.cpp
@@ -568,7 +568,7 @@ Dynamic::PartBias::changeBiasWeight( int biasNum, qreal value )
if( biasNum != 0 )
{
qreal oldV = m_weights.at(0);
- qreal newV = qBound( qreal( 0.0 ), 1.0 - (sum - oldV), qreal( 1.0 ) );
+ qreal newV = qBound<qreal>( qreal( 0.0 ), 1.0 - (sum - oldV), qreal( 1.0 ) );
m_weights[0] = newV;
sum = sum - oldV + newV;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic