Changeset - 35b29fb4dae5
[Not reviewed]
default
0 1 0
Mehmet Aslan - 7 years ago 2019-02-02 12:02:49
aaslan-mehmet@hotmail.com
redefinition of qswap<float> fixed
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/floatswap.h
Show inline comments
 
#include <QtGlobal>
 

	
 
#if (QT_VERSION < QT_VERSION_CHECK(5, 12, 0))
 

	
 
template <> inline float qbswap<float>(float source)
 
{
 
    float result;
 
    char* s = (char*) &source;
 
    char* t = (char*) &result;
 
    t[0] = s[3];
 
    t[1] = s[2];
 
    t[2] = s[1];
 
    t[3] = s[0];
 
    return result;
 
}
 

	
 
#endif
0 comments (0 inline, 0 general)