Skip to content

Commit 4d75a7d

Browse files
committed
postgresql provider: fix 64bit ints
1 parent 061fba4 commit 4d75a7d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/qgssearchtreenode.cpp

100755100644
File mode changed.

src/providers/postgres/qgspostgresprovider.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,8 @@ qint64 QgsPostgresProvider::getBinaryInt( PGresult *queryResult, int row, int co
491491

492492
case 8:
493493
{
494-
qint32 oid0 = htonl( *( qint32 * ) p );
495-
qint32 oid1 = htonl( *( qint32 * )( p + sizeof( qint32 ) ) );
494+
qint32 oid0 = *( qint32 * ) p;
495+
qint32 oid1 = *( qint32 * )( p + sizeof( qint32 ) );
496496

497497
if ( swapEndian )
498498
{

0 commit comments

Comments
 (0)