Add a test case for writing a double to a filled buffer.

This commit is contained in:
Victor Zverovich
2014-04-09 08:05:23 -07:00
parent 87545b0af4
commit 5f9574c3c1
2 changed files with 11 additions and 2 deletions
+3 -2
View File
@@ -92,6 +92,8 @@ FMT_GCC_EXTENSION typedef long long LongLong;
FMT_GCC_EXTENSION typedef unsigned long long ULongLong;
namespace internal {
enum { INLINE_BUFFER_SIZE = 500 };
#if _SECURE_SCL
template <typename T>
@@ -648,8 +650,7 @@ class BasicFormatter;
template <typename Char>
class BasicWriter {
private:
enum { INLINE_BUFFER_SIZE = 500 };
mutable internal::Array<Char, INLINE_BUFFER_SIZE> buffer_; // Output buffer.
mutable internal::Array<Char, internal::INLINE_BUFFER_SIZE> buffer_; // Output buffer.
friend class BasicFormatter<Char>;