Skip to content

Commit

Permalink
Fixed ifdef condition in QJson resulting in big endian breakage.
Browse files Browse the repository at this point in the history
Change-Id: I3d36d75ff95ad2fe2fcbbe262f9782f0709d7041
Reviewed-by: Lars Knoll <[email protected]>
  • Loading branch information
annulen authored and The Qt Project committed Sep 24, 2012
1 parent 8b7b6b6 commit 609d2ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/corelib/json/qjson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ QT_BEGIN_NAMESPACE
namespace QJsonPrivate
{

#ifdef Q_LITTLE_ENDIAN
#if Q_BYTE_ORDER == Q_LITTLE_ENDIAN
#define Q_TO_LITTLE_ENDIAN(x) (x)
#else
#define Q_TO_LITTLE_ENDIAN(x) ( ((x & 0xff) << 24) | ((x & 0xff00) << 8) | ((x & 0xff0000) >> 8) | ((x & 0xff000000) >> 24) )
Expand Down

0 comments on commit 609d2ee

Please sign in to comment.