diff options
author | Chris Robinson <[email protected]> | 2015-11-06 02:18:42 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-11-06 02:18:42 -0800 |
commit | 16a6e010fd28cf104146fd8ce24d67ee5d13764f (patch) | |
tree | 9f1dabd4f51355233d8e9da0ee872afbf89bfbad /Alc/helpers.c | |
parent | 3e992309a526e126e1c7f8f17c7f8b1142b8b606 (diff) |
Add a cast to silence an MSVC warning
Diffstat (limited to 'Alc/helpers.c')
-rw-r--r-- | Alc/helpers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c index c4a220ef..7b9e58e0 100644 --- a/Alc/helpers.c +++ b/Alc/helpers.c @@ -1364,12 +1364,12 @@ void al_string_append_wcstr(al_string *str, const wchar_t *from) void al_string_append_wrange(al_string *str, const wchar_t *from, const wchar_t *to) { int len; - if((len=WideCharToMultiByte(CP_UTF8, 0, from, to-from, NULL, 0, NULL, NULL)) > 0) + if((len=WideCharToMultiByte(CP_UTF8, 0, from, (int)(to-from), NULL, 0, NULL, NULL)) > 0) { size_t strlen = al_string_length(*str); VECTOR_RESERVE(*str, strlen+len+1); VECTOR_RESIZE(*str, strlen+len); - WideCharToMultiByte(CP_UTF8, 0, from, to-from, &VECTOR_FRONT(*str) + strlen, len+1, NULL, NULL); + WideCharToMultiByte(CP_UTF8, 0, from, (int)(to-from), &VECTOR_FRONT(*str) + strlen, len+1, NULL, NULL); *VECTOR_ITER_END(*str) = 0; } } |