|
Bugzilla – Full Text Bug Listing |
| Summary: | Wrong Scalar arithmetics | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Pavel Boyko <boyko> |
| Component: | core | Assignee: | Mathieu Lacage <mathieu.lacage> |
| Status: | RESOLVED FIXED | ||
| Severity: | critical | CC: | ns-bugs, tomh |
| Priority: | P2 | ||
| Version: | ns-3-dev | ||
| Hardware: | All | ||
| OS: | All | ||
changeset 2ae38db64dd1 |
Test program: #include <iostream> #include "ns3/simulator-module.h" int main () { std::cout << (ns3::Scalar (0.9) / ns3::Scalar (1.0)).GetDouble () << "\n"; return 0; } Expected output: 0.9 Actual output (ns-3-dev changeset: 6103:12931126ea21) : -0.1