From 2444971f6901cffcd4aeacb9f20927b685e38c01 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 1 Mar 2018 14:16:53 -0800 Subject: [PATCH] Fix VS compile warnings. No functional change. --- lib/parse.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/parse.h b/lib/parse.h index 28674f2469..896d76d408 100644 --- a/lib/parse.h +++ b/lib/parse.h @@ -183,13 +183,13 @@ struct XML_PARSER { if (isascii(c) && isspace(c)) { if (found_space && attr_buf) { if (--attr_len > 0) { - *attr_buf++ = c; + *attr_buf++ = (char)c; } } found_space = true; } else if (c == '/') { if (--tag_len > 0) { - *buf++ = c; + *buf++ = (char)c; } else { return XML_PARSE_OVERFLOW; } @@ -197,12 +197,12 @@ struct XML_PARSER { if (found_space) { if (attr_buf) { if (--attr_len > 0) { - *attr_buf++ = c; + *attr_buf++ = (char)c; } } } else { if (--tag_len > 0) { - *buf++ = c; + *buf++ = (char)c; } else { return XML_PARSE_OVERFLOW; } @@ -237,7 +237,7 @@ struct XML_PARSER { retval = ERR_XML_PARSE; break; } - buf[n++] = c; + buf[n++] = (char)c; buf[n] = 0; char* p = strstr(buf, end_tag); if (p) {