diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-04-06 17:03:05 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-04-06 17:03:05 +0200 |
commit | 255ad121c7b40309020b57a68b55c78f10b2fc96 (patch) | |
tree | 0aef1bbf8c3288b4a745ddbf78ed24a3aecbc55b /libxsd | |
parent | b979e2549d1775119e69d35a3a95971a2907946f (diff) |
Fix Sun CC compiler warning
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) { |