summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-06-01 20:31:43 +0200
committerBram Moolenaar <Bram@vim.org>2016-06-01 20:31:43 +0200
commit9b0ac229bcfc91acabd35fc576055a94c1687c32 (patch)
treeabf68459f891591627c97c6358a8299a774e8970
parent18dfb4404a618c52ee7138630a2381aed4d66eaf (diff)
patch 7.4.1863v7.4.1863
Problem: Compiler warnings on Win64. Solution: Adjust types, add type casts. (Ken Takata)
-rw-r--r--src/if_mzsch.c6
-rw-r--r--src/if_perl.xs7
-rw-r--r--src/if_ruby.c2
-rw-r--r--src/version.c4
4 files changed, 11 insertions, 8 deletions
diff --git a/src/if_mzsch.c b/src/if_mzsch.c
index 93e4b6cbba..1861df49a0 100644
--- a/src/if_mzsch.c
+++ b/src/if_mzsch.c
@@ -545,7 +545,7 @@ static void (*dll_scheme_set_config_path)(Scheme_Object *p);
# if MZSCHEME_VERSION_MAJOR >= 500
# if defined(IMPLEMENT_THREAD_LOCAL_VIA_WIN_TLS) || defined(IMPLEMENT_THREAD_LOCAL_EXTERNALLY_VIA_PROC)
-/* define as function for macro in schshread.h */
+/* define as function for macro in schthread.h */
Thread_Local_Variables *
scheme_external_get_thread_local_variables(void)
{
@@ -894,7 +894,7 @@ static void remove_timer(void);
/* timers are presented in GUI only */
# if defined(FEAT_GUI_W32)
static void CALLBACK
-timer_proc(HWND hwnd UNUSED, UINT uMsg UNUSED, UINT idEvent UNUSED, DWORD dwTime UNUSED)
+timer_proc(HWND hwnd UNUSED, UINT uMsg UNUSED, UINT_PTR idEvent UNUSED, DWORD dwTime UNUSED)
# elif defined(FEAT_GUI_GTK)
# if GTK_CHECK_VERSION(3,0,0)
static gboolean
@@ -3571,7 +3571,7 @@ raise_vim_exn(const char *add_info)
info = scheme_make_byte_string(add_info);
MZ_GC_CHECK();
- c_string = scheme_format_utf8(fmt, STRLEN(fmt), 1, &info, NULL);
+ c_string = scheme_format_utf8(fmt, (int)STRLEN(fmt), 1, &info, NULL);
MZ_GC_CHECK();
byte_string = scheme_make_byte_string(c_string);
MZ_GC_CHECK();
diff --git a/src/if_perl.xs b/src/if_perl.xs
index aab7ade227..a4899945fe 100644
--- a/src/if_perl.xs
+++ b/src/if_perl.xs
@@ -1075,7 +1075,8 @@ perl_to_vim(SV *sv, typval_T *rettv)
{
size_t len = 0;
char * str_from = SvPV(sv, len);
- char_u *str_to = (char_u*)alloc(sizeof(char_u) * (len + 1));
+ char_u *str_to = (char_u*)alloc(
+ (unsigned)(sizeof(char_u) * (len + 1)));
if (str_to) {
str_to[len] = '\0';
@@ -1370,13 +1371,13 @@ PerlIOVim_write(pTHX_ PerlIO *f, const void *vbuf, Size_t count)
char_u *str;
PerlIOVim * s = PerlIOSelf(f, PerlIOVim);
- str = vim_strnsave((char_u *)vbuf, count);
+ str = vim_strnsave((char_u *)vbuf, (int)count);
if (str == NULL)
return 0;
msg_split((char_u *)str, s->attr);
vim_free(str);
- return count;
+ return (SSize_t)count;
}
static PERLIO_FUNCS_DECL(PerlIO_Vim) = {
diff --git a/src/if_ruby.c b/src/if_ruby.c
index 80ffa49d31..90e814ec12 100644
--- a/src/if_ruby.c
+++ b/src/if_ruby.c
@@ -733,7 +733,7 @@ vim_str2rb_enc_str(const char *s)
vim_free(sval);
if (enc)
{
- return rb_enc_str_new(s, strlen(s), enc);
+ return rb_enc_str_new(s, (long)strlen(s), enc);
}
}
#endif
diff --git a/src/version.c b/src/version.c
index 279ee6d396..0d234a5d3d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1863,
+/**/
1862,
/**/
1861,
@@ -5077,7 +5079,7 @@ do_intro_line(
if (*mesg == ' ')
{
vim_strncpy(modby, (char_u *)_("Modified by "), MODBY_LEN - 1);
- l = STRLEN(modby);
+ l = (int)STRLEN(modby);
vim_strncpy(modby + l, (char_u *)MODIFIED_BY, MODBY_LEN - l - 1);
mesg = modby;
}