postgresql provider: fix 64bit ints

This commit is contained in:
Juergen E. Fischer 2011-07-01 00:17:33 +02:00
parent 061fba4544
commit 4d75a7d3e4
2 changed files with 2 additions and 2 deletions

0
src/core/qgssearchtreenode.cpp Executable file → Normal file
View File

View File

@ -491,8 +491,8 @@ qint64 QgsPostgresProvider::getBinaryInt( PGresult *queryResult, int row, int co
case 8:
{
qint32 oid0 = htonl( *( qint32 * ) p );
qint32 oid1 = htonl( *( qint32 * )( p + sizeof( qint32 ) ) );
qint32 oid0 = *( qint32 * ) p;
qint32 oid1 = *( qint32 * )( p + sizeof( qint32 ) );
if ( swapEndian )
{