aboutsummaryrefslogtreecommitdiff
path: root/src/nad_init.c
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2017-02-26 13:36:32 +0100
committerEven Rouault <even.rouault@spatialys.com>2017-02-26 13:39:00 +0100
commitabb21adb39de752b427e1e6fc66d94cfc9c3ee04 (patch)
tree81ed826114ede8567148b92871896ae7412d9cac /src/nad_init.c
parent8eb46dbbb63d7a880ac787561c907491cffc0917 (diff)
downloadPROJ-abb21adb39de752b427e1e6fc66d94cfc9c3ee04.tar.gz
PROJ-abb21adb39de752b427e1e6fc66d94cfc9c3ee04.zip
Fix MSVC warnings and add /Wx to appveyor.yml
Diffstat (limited to 'src/nad_init.c')
-rw-r--r--src/nad_init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nad_init.c b/src/nad_init.c
index 3b35ea63..14fa5226 100644
--- a/src/nad_init.c
+++ b/src/nad_init.c
@@ -134,7 +134,7 @@ struct CTABLE *nad_ctable_init( projCtx ctx, PAFile fid )
}
/* trim white space and newlines off id */
- for( id_end = strlen(ct->id)-1; id_end > 0; id_end-- )
+ for( id_end = (int)strlen(ct->id)-1; id_end > 0; id_end-- )
{
if( ct->id[id_end] == '\n' || ct->id[id_end] == ' ' )
ct->id[id_end] = '\0';
@@ -181,7 +181,7 @@ int nad_ctable2_load( projCtx ctx, struct CTABLE *ct, PAFile fid )
if( !IS_LSB )
{
- swap_words( ct->cvs, 4, a_size * 2 );
+ swap_words( ct->cvs, 4, (int)a_size * 2 );
}
return 1;
@@ -243,7 +243,7 @@ struct CTABLE *nad_ctable2_init( projCtx ctx, PAFile fid )
}
/* trim white space and newlines off id */
- for( id_end = strlen(ct->id)-1; id_end > 0; id_end-- )
+ for( id_end = (int)strlen(ct->id)-1; id_end > 0; id_end-- )
{
if( ct->id[id_end] == '\n' || ct->id[id_end] == ' ' )
ct->id[id_end] = '\0';