[CSHARP-338] BsonDouble.Equals fails on NaN Created: 11/Oct/11 Updated: 02/Apr/15 Resolved: 13/Oct/11 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 1.2 |
| Fix Version/s: | 1.3 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Yaniv Schiller | Assignee: | Robert Stam |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
BsonDouble doesn't follow double's convention on Equals. Implementation of BsonDouble.Equals call double's == operator. var left = double.NaN; |
| Comments |
| Comment by Robert Stam [ 12/Oct/11 ] |
|
Replacing this with the more general JIRA ticket to check all implementations of Equals, operator == and GetHashCode. |