Skip to content

Commit 3a4d786

Browse files
author
rouault
committed
MSVC warning fixes
git-svn-id: https://svn.osgeo.org/gdal/trunk/gdal@28387 f0d54148-0727-0410-94bb-9a71ac55c965
1 parent 3a3994b commit 3a4d786

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

apps/gdalbuildvrt.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,7 @@ static void add_file_to_list(const char* filename, const char* tile_index,
12321232
}
12331233

12341234
/* Load in memory existing file names in SHP */
1235-
int nTileIndexFiles = OGR_L_GetFeatureCount(hLayer, TRUE);
1235+
int nTileIndexFiles = (int)OGR_L_GetFeatureCount(hLayer, TRUE);
12361236
if (nTileIndexFiles == 0)
12371237
{
12381238
fprintf( stderr, "Tile index %s is empty. Skipping it.\n", filename);

apps/ogr2ogr.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2286,7 +2286,7 @@ int main( int nArgc, char ** papszArgv )
22862286
else
22872287
{
22882288
pfnProgress = GDALScaledProgress;
2289-
int nStart = 0;
2289+
GIntBig nStart = 0;
22902290
if (poPassedLayer != poLayer && nMaxSplitListSubFields != 1)
22912291
nStart = panLayerCountFeatures[iLayer] / 2;
22922292
pProgressArg =

apps/ogrtindex.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ int main( int nArgc, char ** papszArgv )
255255
char** existingLayersTab = NULL;
256256
OGRSpatialReference* alreadyExistingSpatialRef = NULL;
257257
int alreadyExistingSpatialRefValid = FALSE;
258-
nExistingLayers = poDstLayer->GetFeatureCount();
258+
nExistingLayers = (int)poDstLayer->GetFeatureCount();
259259
if (nExistingLayers)
260260
{
261261
int i;

0 commit comments

Comments
 (0)