From 9cb5c2c0511789345288e140230487697920b2a0 Mon Sep 17 00:00:00 2001 From: David Loffredo Date: Thu, 15 Aug 2019 15:59:39 -0400 Subject: [PATCH 1/2] fix loss of data warnings with vc15 win64 and /W4 Signed-off-by: David Loffredo --- expat/lib/xmltok.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expat/lib/xmltok.c b/expat/lib/xmltok.c index 43a54816..cd24daf8 100644 --- a/expat/lib/xmltok.c +++ b/expat/lib/xmltok.c @@ -655,7 +655,7 @@ unicode_byte_type(char hi, char lo) { return XML_CONVERT_INPUT_INCOMPLETE; \ } \ plane = (((hi & 0x3) << 2) | ((lo >> 6) & 0x3)) + 1; \ - *(*toP)++ = ((plane >> 2) | UTF8_cval4); \ + *(*toP)++ = (char)((plane >> 2) | UTF8_cval4); \ *(*toP)++ = (((lo >> 2) & 0xF) | ((plane & 0x3) << 4) | 0x80); \ from += 2; \ lo2 = GET_LO(from); \ From 2950d7287a99512361d78df960fdb1c6e02d5c97 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sat, 17 Aug 2019 18:01:37 +0200 Subject: [PATCH 2/2] Changes: Document #310 --- expat/Changes | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/expat/Changes b/expat/Changes index 211ced88..96ef0fec 100644 --- a/expat/Changes +++ b/expat/Changes @@ -30,7 +30,8 @@ Release x.x.x xxx xxx xx xxxx unofficial API function SystemFunction036 (RtlGenRandom) by using official API function rand_s (needs WinXP+) #14 Drop an OpenVMS support leftover - #235 #268 #270 Address compiler warnings + #235 #268 .. + #270 #310 Address compiler warnings #282 #283 .. #284 #285 Address cppcheck warnings #294 #295 Address Clang Static Analyzer warnings