Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75174 - trunk/libs/locale/src/posix
From: artyomtnk_at_[hidden]
Date: 2011-10-30 04:24:27


Author: artyom
Date: 2011-10-30 04:24:23 EDT (Sun, 30 Oct 2011)
New Revision: 75174
URL: http://svn.boost.org/trac/boost/changeset/75174

Log:
An attempt to fix clang-2.9 and clang-3.0 build issue - cast of unsigned char to char

Text files modified:
   trunk/libs/locale/src/posix/codecvt.cpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/libs/locale/src/posix/codecvt.cpp
==============================================================================
--- trunk/libs/locale/src/posix/codecvt.cpp (original)
+++ trunk/libs/locale/src/posix/codecvt.cpp 2011-10-30 04:24:23 EDT (Sun, 30 Oct 2011)
@@ -134,7 +134,7 @@
 
             // maybe illegal or may be double byte
 
- char inseq[3] = {seq0 , begin[1], 0};
+ char inseq[3] = { static_cast<char>(seq0) , begin[1], 0};
             char *inbuf = inseq;
             size_t insize = 3;
             uint32_t result[2] = { illegal, illegal };


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