-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor - P4
-
Affects Version/s: None
-
Component/s: None
Expected Behavior
As a js-bson user
I expect correct size calculations
When calling calculateObjectSize with -0 as an input
Actual Behavior and Impact
- When -0 is passed to calculateObjectSize it is treated as an int32 instead of a double
- No known customer issues, public reports of the problem other than the incoming PR.
Dependencies
- None
Risks/Unknowns
- None
Acceptance Criteria
Implementation Requirements
- calculateObjectS_ize_ should calculate -0 as a double instead of an int32
Testing Requirements
- Unit tests should be added to cover the case in which -0 yields invalid size calculations from calculateObjectSize
Documentation Requirements
- Release note crediting the user who submitted the fix
Follow Up Requirements
- None