Opened 15 years ago
Closed 15 years ago
#368 closed defect (fixed)
numeric_limits::min() fixes
| Reported by: | Peter Kovacs | Owned by: | Peter Kovacs |
|---|---|---|---|
| Priority: | major | Milestone: | LEMON 1.3 release |
| Component: | core | Version: | hg main |
| Keywords: | Cc: | ||
| Revision id: |
Description
I have not noticed yet that std::numeric_limits<T>::min() returns the "minimum positive normalized value" for floating point types.
It returns a small negative value for int, but returns a small positive value for double.
I did not use this function properly in NetworkSimplex. The attached patch fixes this.
Attachments (1)
Change History (3)
Changed 15 years ago by
| Attachment: | 368-ns-fix-5205145fabf6.patch added |
|---|
comment:1 follow-up: 2 Changed 15 years ago by
| Status: | new → assigned |
|---|
comment:2 Changed 15 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.


[5205145fabf6] should be merged into branches 1.1, 1.2, main.