cmd: Avoid mixing signed and unsigned type in conditional expression
Frédéric Delanoy
frederic.delanoy at gmail.com
Wed Oct 26 21:53:11 CDT 2011
---
programs/cmd/wcmdmain.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/programs/cmd/wcmdmain.c b/programs/cmd/wcmdmain.c
index 56aa85f..1bcc598 100644
--- a/programs/cmd/wcmdmain.c
+++ b/programs/cmd/wcmdmain.c
@@ -278,7 +278,7 @@ static void WCMD_output_asis_handle (DWORD std_handle, const WCHAR *message) {
ptr++;
};
if (*ptr == '\n') ptr++;
- WCMD_output_asis_len(message, (ptr) ? ptr - message : strlenW(message), handle);
+ WCMD_output_asis_len(message, (ptr) ? (DWORD)(ptr - message) : strlenW(message), handle);
if (ptr) {
numChars = 0;
if (++line_count >= max_height - 1) {
--
1.7.7.1
More information about the wine-patches
mailing list