[SERVER-3682] v1 index equality comparison does not compare positive and negative zero as equal Created: 24/Aug/11 Updated: 11/Jul/16 Resolved: 29/Aug/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 2.0.0-rc1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Aaron Staple | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
We just check equality of doubles using their bits, but +/- 0 have different bit representations and should compare equal. case coid: I wrote a test, will push it once buildbot is working. |
| Comments |
| Comment by auto [ 29/Aug/11 ] |
|
Author: {u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}Message: fix double comparision of -0 and 0 for v1 indexes |
| Comment by auto [ 24/Aug/11 ] |
|
Author: {u'login': u'astaple', u'name': u'Aaron', u'email': u'aaron@10gen.com'}Message: |