com php-src: Kill compiler warnings in ext/com_dotnet: ex t/com_dotnet/com_olechar.c
| From: | Kalle Sommer Nielsen | Date: | Wed, 23 Aug 2017 22:52:48 +0000 |
| Subject: | com php-src: Kill compiler warnings in ext/com_dotnet: ex t/com_dotnet/com_olechar.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-99139@lists.php.net to get a copy of this message | ||
Commit: 7d7be194d38d06056153ce9272544ec7c7fe10a7
Author: Kalle Sommer Nielsen <kalle@php.net> Thu, 24 Aug 2017 00:52:48 +0200
Parents: 672c98a4561c2033716610fef76d75cb0616051f
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7d7be194d38d06056153ce9272544ec7c7fe10a7
Log:
Kill compiler warnings in ext/com_dotnet
Changed paths:
M ext/com_dotnet/com_olechar.c
Diff:
diff --git a/ext/com_dotnet/com_olechar.c b/ext/com_dotnet/com_olechar.c
index f155f2e..31115e2 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 {