Skip to content

Commit

Permalink
fix #295
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix committed Oct 18, 2019
1 parent 67f2bfc commit b4cc17e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions include/iutest_printers.hpp
Expand Up @@ -41,17 +41,17 @@ IUTEST_PRAGMA_CONSTEXPR_CALLED_AT_RUNTIME_WARN_DISABLE_BEGIN()
{
for( size_t i=0; i < size; ++i )
{
if( i == kMaxCount )
{
*os << "... ";
break;
}
#ifdef __clang_analyzer__
const unsigned char n = 0; // suppress
#else
const unsigned char n = buf[i];
#endif
*os << detail::ToHex((n>>4)&0xF) << ToHex(n&0xF) << " ";
if( i == kMaxCount )
{
*os << "... ";
break;
}
}
}
*os << ">";
Expand Down Expand Up @@ -558,7 +558,7 @@ inline void IUTEST_ATTRIBUTE_UNUSED_ UniversalPrintArray(const T* begin, size_t
}
else
{
*os << "{";
*os << "{ ";
const size_t kThreshold = kValues::PrintArrayThreshold;
const size_t kChunksize = kValues::PrintArrayChunksize;
if( N <= kThreshold )
Expand All @@ -571,7 +571,7 @@ inline void IUTEST_ATTRIBUTE_UNUSED_ UniversalPrintArray(const T* begin, size_t
*os << ", ..., ";
PrintRawArrayTo(begin + N - kChunksize, kChunksize, os);
}
*os << "}";
*os << " }";
}
}
/**
Expand Down

0 comments on commit b4cc17e

Please sign in to comment.