Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix incorrect char/enum comparison
  • Loading branch information
nyalldawson committed Mar 30, 2021
1 parent d000d00 commit 4da1c36
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1061,7 +1061,7 @@ bool QgsPostgresRasterProvider::init()
for ( const QString &t : std::as_const( pxTypes ) )
{
Qgis::DataType type { pixelTypeFromString( t ) };
if ( t == Qgis::DataType::UnknownDataType )
if ( type == Qgis::DataType::UnknownDataType )
{
throw QgsPostgresRasterProviderException( tr( "Unsupported data type: '%1'" ).arg( t ) );
}
Expand Down

0 comments on commit 4da1c36

Please sign in to comment.