diff options
Diffstat (limited to 'libxsd')
-rw-r--r-- | libxsd/xsd/cxx/xml/char-utf8.txx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libxsd/xsd/cxx/xml/char-utf8.txx b/libxsd/xsd/cxx/xml/char-utf8.txx index a6511be..c7935ec 100644 --- a/libxsd/xsd/cxx/xml/char-utf8.txx +++ b/libxsd/xsd/cxx/xml/char-utf8.txx @@ -152,7 +152,7 @@ namespace xsd for (const C* p (s); p < end; ++p) { - unsigned char c (*p); + unsigned char c (static_cast<unsigned char> (*p)); if (c < 0x80) { @@ -201,7 +201,7 @@ namespace xsd for (const C* p (s); p < end; ++p) { - unsigned char c (*p); + unsigned char c (static_cast<unsigned char> (*p)); if (c < 0x80) { |