File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -623,12 +623,12 @@ private static string Encode5987(StringSegment input)
623623 var maxInputBytes = Encoding . UTF8 . GetMaxByteCount ( input . Length ) ;
624624 byte [ ] ? bufferFromPool = null ;
625625 Span < byte > inputBytes = maxInputBytes <= MaxStackAllocSizeBytes
626- ? stackalloc byte [ maxInputBytes ]
626+ ? stackalloc byte [ MaxStackAllocSizeBytes ]
627627 : bufferFromPool = ArrayPool < byte > . Shared . Rent ( maxInputBytes ) ;
628628
629629 char [ ] ? charBufferFromPool = null ;
630630 Span < char > tempCharBuffer = input . Length <= MaxStackAllocSizeChars
631- ? stackalloc char [ input . Length ]
631+ ? stackalloc char [ MaxStackAllocSizeChars ]
632632 : charBufferFromPool = ArrayPool < char > . Shared . Rent ( input . Length ) ;
633633
634634 var bytesWritten = Encoding . UTF8 . GetBytes ( input , inputBytes ) ;
You can’t perform that action at this time.
0 commit comments