We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62c5966 commit ca4e15cCopy full SHA for ca4e15c
Bson/IO/BsonBuffer.cs
@@ -543,10 +543,10 @@ public string ReadString()
543
544
// special case single character strings
545
case 2:
546
- var c = _chunk[_chunkOffset];
547
- if (c < 127)
+ var c1 = _chunk[_chunkOffset];
+ if (c1 < 128)
548
{
549
- value = __asciiStringTable[c];
+ value = __asciiStringTable[c1];
550
}
551
else
552
@@ -609,7 +609,7 @@ public string ReadCString()
609
if (_chunk[_chunkOffset + 1] == 0)
610
611
string value;
612
- if (c1 < 127)
613
614
value = __asciiStringTable[c1];
615
0 commit comments