Skip to content

Commit 2c70cd6

Browse files
committed
fix float parse
1 parent da37dcd commit 2c70cd6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/RESPite/Messages/RespReader.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1745,8 +1745,7 @@ public bool TryReadDouble(out double value, bool allowTokens = true)
17451745
{
17461746
var span = Buffer(stackalloc byte[RespConstants.MaxRawBytesNumber + 1]);
17471747

1748-
if (span.Length <= RespConstants.MaxRawBytesNumber
1749-
&& Utf8Parser.TryParse(span, out value, out int bytes)
1748+
if (Utf8Parser.TryParse(span, out value, out int bytes)
17501749
&& bytes == span.Length)
17511750
{
17521751
return true;

0 commit comments

Comments
 (0)