Skip to content

Commit

Permalink
Fix decimal index #693
Browse files Browse the repository at this point in the history
  • Loading branch information
mbdavid committed Aug 16, 2017
1 parent 7363ce7 commit 58747f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions LiteDB/Utils/ByteReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ public BsonValue ReadBsonValue(ushort length)
case BsonType.Int32: return this.ReadInt32();
case BsonType.Int64: return this.ReadInt64();
case BsonType.Double: return this.ReadDouble();
case BsonType.Decimal: return this.ReadDecimal();

case BsonType.String: return this.ReadString(length);

Expand Down
1 change: 1 addition & 0 deletions LiteDB/Utils/ByteWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ public void WriteBsonValue(BsonValue value, ushort length)
case BsonType.Int32: this.Write((Int32)value.RawValue); break;
case BsonType.Int64: this.Write((Int64)value.RawValue); break;
case BsonType.Double: this.Write((Double)value.RawValue); break;
case BsonType.Decimal: this.Write((Decimal)value.RawValue); break;

case BsonType.String: this.Write((String)value.RawValue, length); break;

Expand Down

0 comments on commit 58747f7

Please sign in to comment.