diff options
| author | Tomasz Dąbrowski <[email protected]> | 2017-09-25 16:48:57 +0200 |
|---|---|---|
| committer | Tomasz Dabrowski <[email protected]> | 2017-09-27 22:22:05 +0200 |
| commit | 490de9dbe1ae346e230a9d55456687ae8f25f7c7 (patch) | |
| tree | 9752f0387d2b4510f68a404b3a6785aba3616f13 | |
| parent | 220c628210c3aa741983685cd542748623aa0832 (diff) | |
| download | mruby-490de9dbe1ae346e230a9d55456687ae8f25f7c7.tar.gz mruby-490de9dbe1ae346e230a9d55456687ae8f25f7c7.zip | |
fix: src\print.c(22): warning C4244: 'initializing': conversion from 'mrb_int' to 'int', possible loss of data
| -rw-r--r-- | mrbgems/mruby-print/src/print.c | 2 |
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)); |
