Permalink
Browse files

Fix a warning in hazard_ptrs

  • Loading branch information...
1 parent 8428cb3 commit 56ad0d3a596ddab18bf44b85770501f03586f45d @rescrv committed Jan 29, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 e/hazard_ptrs.h
View
@@ -311,7 +311,7 @@ hazard_ptrs<T, P, S> :: hazard_rec :: hazard_rec(hazard_ptrs& parent)
using namespace e::atomic;
store_32_nobarrier(&taslock, 0);
store_ptr_nobarrier(&next, static_cast<hazard_rec*>(NULL));
- store_64_nobarrier(&rcount, NULL);
+ store_64_nobarrier(&rcount, 0);
for (size_t i = 0; i < P; ++i)
{

0 comments on commit 56ad0d3

Please sign in to comment.