From 7d7be194d38d06056153ce9272544ec7c7fe10a7 Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Thu, 24 Aug 2017 00:52:48 +0200 Subject: [PATCH] Kill compiler warnings in ext/com_dotnet --- ext/com_dotnet/com_olechar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/com_dotnet/com_olechar.c b/ext/com_dotnet/com_olechar.c index f155f2ed45..31115e29c5 100644 --- a/ext/com_dotnet/com_olechar.c +++ b/ext/com_dotnet/com_olechar.c @@ -50,7 +50,7 @@ PHP_COM_DOTNET_API OLECHAR *php_com_string_to_olestring(char *string, size_t str This should be fixed by reallocating the olestring, but as emalloc is used, that doesn't matter much. */ ok = MultiByteToWideChar(codepage, flags, string, (int)string_len, olestring, (int)string_len); - if (ok > 0 && ok < string_len) { + if (ok > 0 && (size_t)ok < string_len) { olestring[ok] = '\0'; } } else { -- 2.40.0