diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-08-22 07:35:51 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-08-22 07:35:51 +0900 |
| commit | 3f90af6b4263dfc99d513d228a00e62543f22464 (patch) | |
| tree | c50c04ccbb59193fbcaa56d62be2e0c96b7d2df4 /src/string.c | |
| parent | a7d611fb23e26cabf859aadcf5fc476f64054c3d (diff) | |
| download | mruby-3f90af6b4263dfc99d513d228a00e62543f22464.tar.gz mruby-3f90af6b4263dfc99d513d228a00e62543f22464.zip | |
(Try to) fix mixture of `int` and `size_t` in UTF-8 conversion.
This only effects VC.
Diffstat (limited to 'src/string.c')
| -rw-r--r-- | src/string.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/string.c b/src/string.c index c2526f354..7f826ab1d 100644 --- a/src/string.c +++ b/src/string.c @@ -577,11 +577,11 @@ mrb_str_strlen(mrb_state *mrb, struct RString *s) #include <windows.h> char* -mrb_utf8_from_locale(const char *str, size_t len) +mrb_utf8_from_locale(const char *str, int len) { wchar_t* wcsp; char* mbsp; - size_t mbssize, wcssize; + int mbssize, wcssize; if (len == 0) return strdup(""); @@ -607,11 +607,11 @@ mrb_utf8_from_locale(const char *str, size_t len) } char* -mrb_locale_from_utf8(const char *utf8, size_t len) +mrb_locale_from_utf8(const char *utf8, int len) { wchar_t* wcsp; char* mbsp; - size_t mbssize, wcssize; + int mbssize, wcssize; if (len == 0) return strdup(""); |
