winhlp32: Explicitly cast to signed char
André Hentschel
nerv at dawncrow.de
Tue Jul 24 14:30:03 CDT 2012
---
programs/winhlp32/hlpfile.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/programs/winhlp32/hlpfile.c b/programs/winhlp32/hlpfile.c
index e5248a3..f8ea279 100644
--- a/programs/winhlp32/hlpfile.c
+++ b/programs/winhlp32/hlpfile.c
@@ -712,7 +712,7 @@ static BOOL HLPFILE_RtfAddText(struct RtfData* rd, const char* str)
}
for (last = p = str; *p; p++)
{
- if (*p < 0) /* escape non ASCII chars */
+ if ((signed char)*p < 0) /* escape non ASCII chars */
{
static char xx[8];
rlen = sprintf(xx, "\\'%x", *(const BYTE*)p);
--
1.7.4.1
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list