Skip to content
Permalink
Browse files

Typo endianness

  • Loading branch information
elpaso authored and nyalldawson committed Mar 1, 2020
1 parent 6a92960 commit 1ffda15a33c271d592c68d128a424bf14f023429
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/postgres/raster/qgspostgresrasterutils.cpp
@@ -47,10 +47,10 @@ QVariantMap QgsPostgresRasterUtils::parseWkb( const QByteArray &wkb, int bandNo
*/

// Endianness
result[ QStringLiteral( "endiannes" ) ] = static_cast<unsigned short int>( wkb[0] ); //#spellok
result[ QStringLiteral( "endianness" ) ] = static_cast<unsigned short int>( wkb[0] );
// NOTE: For now only little endian is supported
// TODO: endianness
Q_ASSERT( result[ QStringLiteral( "endiannes" ) ] == 1 ); //#spellok
Q_ASSERT( result[ QStringLiteral( "endianness" ) ] == 1 );
result[ QStringLiteral( "version" ) ] = *reinterpret_cast<const unsigned short int *>( &wkb.constData()[1] );
const unsigned short int nBands { *reinterpret_cast<const unsigned short int *>( &wkb.constData()[3] ) };
result[ QStringLiteral( "nBands" ) ] = nBands;

0 comments on commit 1ffda15

Please sign in to comment.
You can’t perform that action at this time.