Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54988 - trunk/libs/serialization/test
From: ramey_at_[hidden]
Date: 2009-07-16 17:22:21


Author: ramey
Date: 2009-07-16 17:22:20 EDT (Thu, 16 Jul 2009)
New Revision: 54988
URL: http://svn.boost.org/trac/boost/changeset/54988

Log:
eliminate MSVC runtime trap when assign short to char
Text files modified:
   trunk/libs/serialization/test/A.cpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/libs/serialization/test/A.cpp
==============================================================================
--- trunk/libs/serialization/test/A.cpp (original)
+++ trunk/libs/serialization/test/A.cpp 2009-07-16 17:22:20 EDT (Thu, 16 Jul 2009)
@@ -89,7 +89,7 @@
     #ifndef BOOST_NO_CWCHAR
     r(std::rand()),
     #endif
- c(std::rand()),
+ c(0xff & std::rand()),
     s(std::rand()),
     t(std::rand()),
     u(std::rand()),


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk