diff src/if_ruby.c @ 9159:6b003ff07234 v7.4.1863

commit https://github.com/vim/vim/commit/9b0ac229bcfc91acabd35fc576055a94c1687c32 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 1 20:31:43 2016 +0200 patch 7.4.1863 Problem: Compiler warnings on Win64. Solution: Adjust types, add type casts. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Wed, 01 Jun 2016 20:45:07 +0200
parents eaf11fa2fec8
children 97b0b568f820
line wrap: on
line diff
--- 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