diff options
Diffstat (limited to 'nejdb/Ejdb.BSON/BSONIterator.cs')
-rw-r--r-- | nejdb/Ejdb.BSON/BSONIterator.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nejdb/Ejdb.BSON/BSONIterator.cs b/nejdb/Ejdb.BSON/BSONIterator.cs index 68c69f8..ac5ee26 100644 --- a/nejdb/Ejdb.BSON/BSONIterator.cs +++ b/nejdb/Ejdb.BSON/BSONIterator.cs @@ -255,7 +255,8 @@ namespace Ejdb.BSON { Debug.Assert(_entryLen - 1 >= 0); string sv = Encoding.UTF8.GetString(_input.ReadBytes(_entryLen - 1)); _entryDataValue = new BSONValue(_ctype, _entryKey, sv); - Debug.Assert(_input.ReadByte() == 0x00); //trailing zero byte + var rb = _input.ReadByte(); + Debug.Assert(rb == 0x00); //trailing zero byte break; } case BSONType.BOOL: |