Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(214)

Unified Diff: src/network/utils/queue-size.cc

Issue 339780043: Eliminate Visual Studio compiler warnings (Closed)
Patch Set: Update patch with latest module changes Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/network/utils/queue-item.cc ('k') | src/network/utils/radiotap-header.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/network/utils/queue-size.cc
===================================================================
--- a/src/network/utils/queue-size.cc
+++ b/src/network/utils/queue-size.cc
@@ -45,61 +45,61 @@
{
// bytes
*unit = QueueSizeUnit::BYTES;
- *value = static_cast<uint32_t>(r);
+ *value = static_cast<uint32_t> (r);
}
else if (trailer == "kB" || trailer == "KB")
{
// kilobytes
*unit = QueueSizeUnit::BYTES;
- *value = static_cast<uint32_t>(r * 1000);
+ *value = static_cast<uint32_t> (r * 1000);
}
else if (trailer == "KiB")
{
// kibibytes
*unit = QueueSizeUnit::BYTES;
- *value = static_cast<uint32_t>(r * 1024);
+ *value = static_cast<uint32_t> (r * 1024);
}
else if (trailer == "MB")
{
// MegaBytes
*unit = QueueSizeUnit::BYTES;
- *value = static_cast<uint32_t>(r * 1000000);
+ *value = static_cast<uint32_t> (r * 1000000);
}
else if (trailer == "MiB")
{
// MebiBytes
*unit = QueueSizeUnit::BYTES;
- *value = static_cast<uint32_t>(r * 1048576);
+ *value = static_cast<uint32_t> (r * 1048576);
}
else if (trailer == "p")
{
// packets
*unit = QueueSizeUnit::PACKETS;
- *value = static_cast<uint32_t>(r);
+ *value = static_cast<uint32_t> (r);
}
else if (trailer == "kp" || trailer == "Kp")
{
// kilopackets
*unit = QueueSizeUnit::PACKETS;
- *value = static_cast<uint32_t>(r * 1000);
+ *value = static_cast<uint32_t> (r * 1000);
}
else if (trailer == "Kip")
{
// kibipackets
*unit = QueueSizeUnit::PACKETS;
- *value = static_cast<uint32_t>(r * 1024);
+ *value = static_cast<uint32_t> (r * 1024);
}
else if (trailer == "Mp")
{
// MegaPackets
*unit = QueueSizeUnit::PACKETS;
- *value = static_cast<uint32_t>(r * 1000000);
+ *value = static_cast<uint32_t> (r * 1000000);
}
else if (trailer == "Mip")
{
// MebiPackets
*unit = QueueSizeUnit::PACKETS;
- *value = static_cast<uint32_t>(r * 1048576);
+ *value = static_cast<uint32_t> (r * 1048576);
}
else
{
@@ -121,7 +121,7 @@
: m_unit (unit),
m_value (value)
{
- NS_LOG_FUNCTION (this << static_cast<uint16_t>(unit) << value);
+ NS_LOG_FUNCTION (this << static_cast<uint16_t> (unit) << value);
}
bool QueueSize::operator < (const QueueSize& rhs) const
« no previous file with comments | « src/network/utils/queue-item.cc ('k') | src/network/utils/radiotap-header.cc » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b