Android: Fix warning for __fp16
Change-Id: I65cd64dfc0ed357555e8b5276109303377a67e0e Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
b9557296cb
commit
39852ce60f
@ -141,7 +141,7 @@ inline qfloat16::operator float() const Q_DECL_NOTHROW
|
||||
#elif defined (__ARM_FP16_FORMAT_IEEE)
|
||||
__fp16 f16;
|
||||
memcpy(&f16, &b16, sizeof(quint16));
|
||||
return f16;
|
||||
return float(f16);
|
||||
#else
|
||||
quint32 u = mantissatable[offsettable[b16 >> 10] + (b16 & 0x3ff)]
|
||||
+ exponenttable[b16 >> 10];
|
||||
|
Loading…
Reference in New Issue
Block a user