Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86180 - trunk/boost/sync/detail
From: andrey.semashev_at_[hidden]
Date: 2013-10-06 13:41:28


Author: andysem
Date: 2013-10-06 13:41:28 EDT (Sun, 06 Oct 2013)
New Revision: 86180
URL: http://svn.boost.org/trac/boost/changeset/86180

Log:
Fixed semaphore name composition.

Text files modified:
   trunk/boost/sync/detail/waitable_timer.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/sync/detail/waitable_timer.hpp
==============================================================================
--- trunk/boost/sync/detail/waitable_timer.hpp Sun Oct 6 13:40:19 2013 (r86179)
+++ trunk/boost/sync/detail/waitable_timer.hpp 2013-10-06 13:41:28 EDT (Sun, 06 Oct 2013) (r86180)
@@ -154,13 +154,13 @@
             if (half < 10)
                 sem_name[15 + i * 2] = '0' + half;
             else
- sem_name[15 + i * 2] = 'a' + half;
+ sem_name[15 + i * 2] = 'a' - 10 + half;
 
             half = b & 0x0f;
             if (half < 10)
                 sem_name[16 + i * 2] = '0' + half;
             else
- sem_name[16 + i * 2] = 'a' + half;
+ sem_name[16 + i * 2] = 'a' - 10 + half;
         }
         sem_name[23] = '\0';
 


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