Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r61618 - trunk/libs/thread/src/pthread
From: anthony_at_[hidden]
Date: 2010-04-27 09:23:01


Author: anthonyw
Date: 2010-04-27 09:23:00 EDT (Tue, 27 Apr 2010)
New Revision: 61618
URL: http://svn.boost.org/trac/boost/changeset/61618

Log:
Fix for compile error win Sun CC 5.9
Text files modified:
   trunk/libs/thread/src/pthread/thread.cpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/libs/thread/src/pthread/thread.cpp
==============================================================================
--- trunk/libs/thread/src/pthread/thread.cpp (original)
+++ trunk/libs/thread/src/pthread/thread.cpp 2010-04-27 09:23:00 EDT (Tue, 27 Apr 2010)
@@ -75,7 +75,7 @@
                             {
                                 current=next;
                                 ++next;
- if(current->second.func && current->second.value)
+ if(current->second.func && (current->second.value!=0))
                                 {
                                     (*current->second.func)(current->second.value);
                                 }
@@ -582,11 +582,11 @@
         {
             if(tss_data_node* const current_node=find_tss_data(key))
             {
- if(cleanup_existing && current_node->func && current_node->value)
+ if(cleanup_existing && current_node->func && (current_node->value!=0))
                 {
                     (*current_node->func)(current_node->value);
                 }
- if(func || tss_data)
+ if(func || (tss_data!=0))
                 {
                     current_node->func=func;
                     current_node->value=tss_data;


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