diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2017-02-26 13:36:32 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2017-02-26 13:39:00 +0100 |
| commit | abb21adb39de752b427e1e6fc66d94cfc9c3ee04 (patch) | |
| tree | 81ed826114ede8567148b92871896ae7412d9cac /src/pj_init.c | |
| parent | 8eb46dbbb63d7a880ac787561c907491cffc0917 (diff) | |
| download | PROJ-abb21adb39de752b427e1e6fc66d94cfc9c3ee04.tar.gz PROJ-abb21adb39de752b427e1e6fc66d94cfc9c3ee04.zip | |
Fix MSVC warnings and add /Wx to appveyor.yml
Diffstat (limited to 'src/pj_init.c')
| -rw-r--r-- | src/pj_init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pj_init.c b/src/pj_init.c index 24aece84..62901fdf 100644 --- a/src/pj_init.c +++ b/src/pj_init.c @@ -73,7 +73,7 @@ static const char *fill_buffer(pj_read_state *state, const char *last_char) /* Move the existing data to the start of the buffer. */ /* -------------------------------------------------------------------- */ memmove(state->buffer, last_char, char_remaining); - state->buffer_filled = char_remaining; + state->buffer_filled = (int)char_remaining; last_char = state->buffer; /* -------------------------------------------------------------------- */ @@ -116,7 +116,7 @@ static const char *fill_buffer(pj_read_state *state, const char *last_char) *w++ = *r++; } *w = 0; - state->buffer_filled += (bytes_read - (r-w)); + state->buffer_filled += (int)(bytes_read - (r-w)); return last_char; } @@ -139,7 +139,7 @@ get_opt(projCtx ctx, paralist **start, PAFile fid, char *name, paralist *next, if(found_def) *found_def = 0; - len = strlen(name); + len = (int)strlen(name); *sword = 't'; if (0==next_char) |
