Bug 1038 - Time::Get*Seconds () return signed integer while actually returning unsigned.
Time::Get*Seconds () return signed integer while actually returning unsigned.
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: core
ns-3-dev
All All
: P4 trivial
Assigned To: Mathieu Lacage
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-12-20 04:34 EST by Andrey Mazo
Modified: 2011-04-17 08:25 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Mazo 2010-12-20 04:34:25 EST
For example, GetMicroSeconds () as of revision [6f1114f669ff]:

inline int64_t GetMicroSeconds (void) const
{
  return ToInteger (*this, Time::US);
}

while ToInteger ():

inline static uint64_t ToInteger (const Time &time, enum Unit timeUnit)
{
  ...
}


It looks like to be already fixed in mathieu/ns-3-time repository.
Comment 1 Mathieu Lacage 2011-04-17 08:25:34 EDT
ns-3-time merged.