Skip to content

Commit

Permalink
3.07.01 release
Browse files Browse the repository at this point in the history
  • Loading branch information
rparolin committed Jan 30, 2018
1 parent cc46050 commit 166512d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 14 deletions.
1 change: 1 addition & 0 deletions include/EASTL/deque.h
Original file line number Diff line number Diff line change
Expand Up @@ -1528,6 +1528,7 @@ namespace eastl
template <typename T, typename Allocator, unsigned kDequeSubarraySize>
inline void deque<T, Allocator, kDequeSubarraySize>::shrink_to_fit()
{
return set_capacity(0);
}


Expand Down
4 changes: 2 additions & 2 deletions include/EASTL/internal/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@
///////////////////////////////////////////////////////////////////////////////

#ifndef EASTL_VERSION
#define EASTL_VERSION "3.07.00"
#define EASTL_VERSION_N 30700
#define EASTL_VERSION "3.07.01"
#define EASTL_VERSION_N 30701
#endif


Expand Down
11 changes: 0 additions & 11 deletions test/source/TestDeque.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1007,17 +1007,6 @@ int TestDeque()
const eastl::deque<int> constIntDeque5 = constIntDeque4;
}

{ // Regression to verify that shrink_to_fit works
eastl::deque<int> intDeque;
VERIFY(intDeque.size() == 0);

intDeque.push_back(42);
VERIFY(intDeque.size() == 1);

intDeque.shrink_to_fit();
VERIFY(intDeque.size() == 1);
}

return nErrorCount;
}

Expand Down
2 changes: 1 addition & 1 deletion test/source/TestString.inl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ int TEST_STRING_NAME()
VERIFY(str.empty());
}

if(!is_same<typename StringType::value_type, char32_t>::value && (EA_PLATFORM_WORD_SIZE == 4)) // not even a single char32_t (plus null-terminator) can fit into the SSO buffer on 32-bit platforms
if(!(sizeof(typename StringType::value_type) >= 4) && (EA_PLATFORM_WORD_SIZE == 4)) // not even a single char32_t (plus null-terminator) can fit into the SSO buffer on 32-bit platforms
{
auto* pLiteral = LITERAL("a");
SSOString str(pLiteral);
Expand Down

0 comments on commit 166512d

Please sign in to comment.