summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-print/src/print.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-09-29 00:18:39 +0900
committerGitHub <[email protected]>2017-09-29 00:18:39 +0900
commit29a9e698e33f89c18cd8f9622bd503aa55df2f51 (patch)
treee83110a7db0edaa3a6c191abe850ed7b657f766e /mrbgems/mruby-print/src/print.c
parent381850280c036116adaffe42cc420da9c71d28a2 (diff)
parent999ce87129fb9216ae746140aa716a764a79b354 (diff)
downloadmruby-29a9e698e33f89c18cd8f9622bd503aa55df2f51.tar.gz
mruby-29a9e698e33f89c18cd8f9622bd503aa55df2f51.zip
Merge pull request #3815 from dabroz/fix-warnings
Fix MSVC 14.0 warnings
Diffstat (limited to 'mrbgems/mruby-print/src/print.c')
-rw-r--r--mrbgems/mruby-print/src/print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-print/src/print.c b/mrbgems/mruby-print/src/print.c
index d0c522d24..e181b06e0 100644
--- a/mrbgems/mruby-print/src/print.c
+++ b/mrbgems/mruby-print/src/print.c
@@ -19,7 +19,7 @@ printstr(mrb_state *mrb, mrb_value obj)
#if defined(_WIN32)
if (isatty(fileno(stdout))) {
DWORD written;
- int mlen = RSTRING_LEN(obj);
+ int mlen = (int)RSTRING_LEN(obj);
char* utf8 = RSTRING_PTR(obj);
int wlen = MultiByteToWideChar(CP_UTF8, 0, utf8, mlen, NULL, 0);
wchar_t* utf16 = (wchar_t*)mrb_malloc(mrb, (wlen+1) * sizeof(wchar_t));