grantlee-0.1.8 build failed on arm7

Rolf Eike Beer kde at opensource.sf-tec.de
Tue Jun 21 08:20:28 BST 2011


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.

Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20110621/d1e12925/attachment.sig>


More information about the kde-core-devel mailing list