Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Build and pass tests with OS X Mavericks

  • Loading branch information...
commit 63efd5be9df43dcb3b1b63c8932a0a49e10416cd 1 parent 4e0cb95
@rescrv authored
Showing with 2 additions and 4 deletions.
  1. +0 −2  e/intrusive_ptr.h
  2. +2 −2 test/intrusive_ptr.cc
View
2  e/intrusive_ptr.h
@@ -131,8 +131,6 @@ class intrusive_ptr
{
tmp->dec();
}
-
- this->m_ptr = rhs.m_ptr;
}
return *this;
View
4 test/intrusive_ptr.cc
@@ -237,7 +237,7 @@ TEST(IntrusivePtr, Compare)
struct node
{
- node() : ref(0), next() {}
+ node() : ref(0), next(NULL) {}
#ifdef _MSC_VER
void inc() { System::Threading::Interlocked::Increment(ref); }
void dec() { if(System::Threading::Interlocked::Decrement(ref) == 0) delete this; }
@@ -253,7 +253,7 @@ TEST(IntrusivePtr, HandOverHand)
{
e::intrusive_ptr<node> head(new node());
- for (size_t i = 0; i < 10000000; ++i)
+ for (size_t i = 0; i < 100000; ++i)
{
e::intrusive_ptr<node> tmp(new node());
tmp->next = head;
Please sign in to comment.
Something went wrong with that request. Please try again.