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

Unified Diff: src/lte/test/lte-test-uplink-sinr.cc

Issue 338840043: 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
Index: src/lte/test/lte-test-uplink-sinr.cc
===================================================================
--- a/src/lte/test/lte-test-uplink-sinr.cc
+++ b/src/lte/test/lte-test-uplink-sinr.cc
@@ -197,7 +197,7 @@
{
// Create packet burst
packetBursts[pb] = CreateObject<PacketBurst> ();
- pbCellId[pb] = cellId * (pb + 1);
+ pbCellId[pb] = static_cast<uint16_t> (cellId * (pb + 1));
// Create packets and add them to the burst
for ( int i = 0 ; i < numOfPkts ; i++ )
@@ -383,7 +383,7 @@
for ( int intfPb = 0 ; intfPb < numOfIntfSignals ; intfPb++, pb++ )
{
- pbCellId[pb] = cellId * (pb + 1);
+ pbCellId[pb] = static_cast<uint16_t> (cellId * (pb + 1));
}

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