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

Unified Diff: src/lte/test/lte-test-pathloss-model.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-pathloss-model.cc
===================================================================
--- a/src/lte/test/lte-test-pathloss-model.cc
+++ b/src/lte/test/lte-test-pathloss-model.cc
@@ -144,7 +144,7 @@
for ( int i = 0 ; i < numOfTests; i++ )
{
// double lossDb = txPowerDbm - snrEfficiencyMcs[i].snrDb - noisePowerDbm - receiverNoiseFigureDb;
- double sinrLin = (txPowerLin/(pow(10, loss[i]/10))) / noiseLin;
+ double sinrLin = static_cast<double> ((txPowerLin/(pow(10, loss[i]/10))) / noiseLin);
// double sinrDb = txPowerDbm- noisePowerDbm - receiverNoiseFigureDb - loss[i];
double sinrDb = 10 * std::log10 (sinrLin);
NS_LOG_INFO (" Ptx " << txPowerDbm << " Pn " << noisePowerDbm << " Fn " << receiverNoiseFigureDb << " Pl " << loss[i] << " dist " << dist[i]);
@@ -159,7 +159,7 @@
std::ostringstream name;
name << " snr= " << sinrDb << " dB, "
<< " mcs= " << snrEfficiencyMcs[i].mcsIndex;
- AddTestCase (new LtePathlossModelSystemTestCase (name.str (), sinrDb, dist[i], mcs), TestCase::QUICK);
+ AddTestCase (new LtePathlossModelSystemTestCase (name.str (), sinrDb, dist[i], static_cast<uint16_t> (mcs)), TestCase::QUICK);
}
Biljana Bojović 2018/08/22 11:35:29 I prefer that we change the parameter of LtePathlo

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