Work around Apple Clang's -Wshadow warning
Well, yeah, it technically does... qcborstream.h:245:15: warning: declaration shadows a typedef in the global namespace [-Wshadow] /usr/include/libkern/OSTypes.h:36:26: note: previous declaration is here Fixes: QTBUG-75825 Change-Id: Idce141629dd34287808bfffd159ee2a75428bf12 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
parent
89d28ebe86
commit
d62ee14283
@ -242,8 +242,8 @@ private:
|
||||
|
||||
template <typename FP> FP _toFloatingPoint() const noexcept
|
||||
{
|
||||
using UInt = typename QIntegerForSizeof<FP>::Unsigned;
|
||||
UInt u = UInt(value64);
|
||||
using UIntFP = typename QIntegerForSizeof<FP>::Unsigned;
|
||||
UIntFP u = UIntFP(value64);
|
||||
FP f;
|
||||
memcpy(static_cast<void *>(&f), &u, sizeof(f));
|
||||
return f;
|
||||
|
Loading…
Reference in New Issue
Block a user