mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
postgresql provider: fix 64bit ints
This commit is contained in:
parent
061fba4544
commit
4d75a7d3e4
0
src/core/qgssearchtreenode.cpp
Executable file → Normal file
0
src/core/qgssearchtreenode.cpp
Executable file → Normal 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 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user