grantlee-0.1.8 build failed on arm7
Harald Sitter
sitter at kde.org
Tue Jun 21 11:42:37 BST 2011
On Tue, Jun 21, 2011 at 9:20 AM, Rolf Eike Beer
<kde at opensource.sf-tec.de> wrote:
> Sune Vuorela wrote:
>> diff --git a/templates/lib/abstractlocalizer.cpp
>> b/templates/lib/abstractlocalizer.cpp index 4e5b15d..104d888 100644
>> --- a/templates/lib/abstractlocalizer.cpp
>> +++ b/templates/lib/abstractlocalizer.cpp
>> @@ -46,8 +46,8 @@ QString AbstractLocalizer::localize( const QVariant&
>> variant ) const return localizeDateTime( variant.toDateTime() );
>> else if ( isSafeString( variant ) )
>> return localizeString( getSafeString( variant ).get() );
>> - else if ( variant.type() == QVariant::Double )
>> - return localizeNumber( variant.toDouble() );
>> + else if ( variant.type() == QVariant::Double ||
>> variant.type()==QMetaType::Float )
>> + return localizeNumber(
>> variant.toReal() );
>> else if ( variant.canConvert( QVariant::LongLong ) )
>> return localizeNumber( variant.toInt() );
>> return QString();
>
> So if it is a double you are truncating it to a float (on ARM). I don't know if
> that is intentional.
qreal on arm is a float, whereas just about on every other platform it
is double.
More information about the kde-core-devel
mailing list