Boost logo

Boost :

From: SourceForge.net (noreply_at_[hidden])
Date: 2004-07-18 08:21:43


Bugs item #993272, was opened at 2004-07-18 15:21
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=993272&group_id=7586

Category: timer
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Philip Hodges (phhodges)
Assigned to: Beman Dawes (beman_dawes)
Summary: xtime_cmp: use comparison not subtraction

Initial Comment:
Subtraction of integral types is prone to arithmetic
overflow.
It is not well-behaved for implementing comparison unless
we first cast both operands to a wider integral type or
assert that they fall in a narrower range.

Choose comparison order to slightly favour future timeouts,
or imminent timeouts in the same second?

Patch provided "as is" without express or implied warranty.
It may contain any number of intended and unintended flaws.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=993272&group_id=7586

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk