Index: src/internet/model/nsc-tcp-l4-protocol.cc |
=================================================================== |
--- a/src/internet/model/nsc-tcp-l4-protocol.cc |
+++ b/src/internet/model/nsc-tcp-l4-protocol.cc |
@@ -357,7 +357,7 @@ |
ipHeader.SetSource (header.GetSource ()); |
ipHeader.SetDestination (header.GetDestination ()); |
ipHeader.SetProtocol (PROT_NUMBER); |
- ipHeader.SetPayloadSize (packetSize); |
+ ipHeader.SetPayloadSize (static_cast<uint16_t> (packetSize)); |
ipHeader.SetTtl (1); |
// all NSC stacks check the IP checksum |
ipHeader.EnableChecksum (); |
@@ -442,8 +442,8 @@ |
// printk output. |
Time t = Simulator::Now (); |
int64_t us = t.GetMicroSeconds (); |
- *sec = us / (1000*1000); |
- *usec = us - *sec * (1000*1000); |
+ *sec = static_cast<unsigned int> (us / (1000*1000)); |
+ *usec = static_cast<unsigned int> (us - *sec * (1000*1000)); |
} |