Skip to content

Commit 786be57

Browse files
committed
fix windows build
1 parent 489a9d5 commit 786be57

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/providers/grass/qgsgrassgislib.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
//#include <signal.h>
1717
#include <stdio.h>
1818
#include <stdarg.h>
19+
#include <QtGlobal>
1920

2021
#ifdef Q_OS_WIN
2122
#include "qgsgrassgislibfunctions.h"
@@ -782,13 +783,13 @@ int QgsGrassGisLib::G_put_raster_row( int fd, const void *buf, RASTER_MAP_TYPE d
782783
switch ( data_type )
783784
{
784785
case CELL_TYPE:
785-
isNoData = G_is_c_null_value( &(( CELL * ) buf )[i] ) == TRUE;
786+
isNoData = G_is_c_null_value( &(( CELL * ) buf )[i] ) != 0;
786787
break;
787788
case FCELL_TYPE:
788-
isNoData = G_is_f_null_value( &(( FCELL * ) buf )[i] ) == TRUE;
789+
isNoData = G_is_f_null_value( &(( FCELL * ) buf )[i] ) != 0;
789790
break;
790791
case DCELL_TYPE:
791-
isNoData = G_is_d_null_value( &(( DCELL * ) buf )[i] ) == TRUE;
792+
isNoData = G_is_d_null_value( &(( DCELL * ) buf )[i] ) != 0;
792793
break;
793794
default:
794795
break;
@@ -884,7 +885,6 @@ double QgsGrassGisLib::G_database_units_to_meters_factor( void )
884885
default:
885886
return 0.;
886887
}
887-
return 0;
888888
}
889889

890890
double GRASS_LIB_EXPORT G_database_units_to_meters_factor( void )

0 commit comments

Comments
 (0)