--- libxsd/xsd/cxx/tree/ace-cdr-stream-extraction.hxx.orig 2007-01-19 11:25:31.000000000 -0500 +++ libxsd/xsd/cxx/tree/ace-cdr-stream-extraction.hxx 2007-01-19 11:26:05.000000000 -0500 @@ -82,9 +82,7 @@ if (!s.impl ().read_octet (r)) throw ace_cdr_stream_extraction (); - // Cannot use static_cast here because of a potential sign loss. - // - x.x_ = reinterpret_cast (r); + x.x_ = static_cast (r); return s; } @@ -99,9 +97,7 @@ if (!s.impl ().read_octet (r)) throw ace_cdr_stream_extraction (); - // Cannot use static_cast here because of a potential sign loss. - // - x.x_ = reinterpret_cast (r); + x.x_ = static_cast (r); return s; } --- libxsd/xsd/cxx/tree/ace-cdr-stream-insertion.hxx.orig 2007-01-19 11:20:45.000000000 -0500 +++ libxsd/xsd/cxx/tree/ace-cdr-stream-insertion.hxx 2007-01-19 11:21:19.000000000 -0500 @@ -67,9 +67,7 @@ operator<< (ostream& s, ostream::as_int8 x) { - // Cannot use static_cast here because of a potential sign loss. - // - ACE_CDR::Octet r (reinterpret_cast (x.x_)); + ACE_CDR::Octet r (static_cast (x.x_)); if (!s.impl ().write_octet (r)) throw ace_cdr_stream_insertion (); @@ -82,9 +80,7 @@ operator<< (ostream& s, ostream::as_uint8 x) { - // Cannot use static_cast here because of a potential sign loss. - // - ACE_CDR::Octet r (reinterpret_cast (x.x_)); + ACE_CDR::Octet r (static_cast (x.x_)); if (!s.impl ().write_octet (r)) throw ace_cdr_stream_insertion ();