From 16a6e010fd28cf104146fd8ce24d67ee5d13764f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 6 Nov 2015 02:18:42 -0800 Subject: Add a cast to silence an MSVC warning --- Alc/helpers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc') 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; } } -- cgit v1.2.3