Skip to content

Commit e059e9f

Browse files
authored
Make StringBuilderCapacityThreshold the even power of two that was intended
1 parent 8d0e2ed commit e059e9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Serilog/Rendering/ReusableStringWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class ReusableStringWriter : StringWriter
1111
/// <summary>
1212
/// Max capacity of StringBuilder we keep for next using
1313
/// </summary>
14-
const int StringBuilderCapacityThreshold = 32678;
14+
const int StringBuilderCapacityThreshold = 32768;
1515

1616
/// <summary>
1717
/// Gets already created StringWriter if there is one available or creates a new one.

0 commit comments

Comments
 (0)