COIN-OR::LEMON - Graph Library

Opened 14 years ago

Closed 14 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)

368-ns-fix-5205145fabf6.patch (1.0 KB) - added by Peter Kovacs 14 years ago.

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by Peter Kovacs

comment:1 Changed 14 years ago by Peter Kovacs

Status: newassigned

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

comment:2 in reply to:  1 Changed 14 years ago by Alpar Juttner

Resolution: fixed
Status: assignedclosed

Replying to kpeter:

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

Done.

Note: See TracTickets for help on using tickets.