[wx-dev] #9539: wxTimeSpan::IsShorterThan() returns true for equal
timespans
wxTrac
noreply at wxsite.net
Thu Jun 5 09:19:51 PDT 2008
Ticket URL: <http://trac.wxwidgets.org/ticket/9539>
#9539: wxTimeSpan::IsShorterThan() returns true for equal timespans
---------------------------------------+------------------------------------
Reporter: pmendl | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: base | Version: 2.8.7
Keywords: wxTimeSpan, IsShorterThan | Blockedby:
Patch: 0 | Blocking:
---------------------------------------+------------------------------------
The following piece of code
{{{
#define MAX_POLLING_PERIOD (10*1000)
//...
*logTextCtrl <<
(wxTimeSpan::Milliseconds(MAX_POLLING_PERIOD).IsShorterThan(wxTimeSpan::Milliseconds(MAX_POLLING_PERIOD))?_("IsShorterThan()
= true\n"):_("IsShorterThan() = false\n"));
}}}
produces output
{{{
IsShorterThan() = true
}}}
while I would expect
{{{
IsShorterThan() = false
}}}
--
Ticket URL: <http://trac.wxwidgets.org/ticket/9539>
More information about the wx-dev
mailing list