olsr: fix static code analysys warnings (thanks to Natale Patriciello)
This commit is contained in:
@@ -50,6 +50,8 @@ SecondsToEmf (double seconds)
|
||||
{
|
||||
int a, b = 0;
|
||||
|
||||
NS_ASSERT_MSG (seconds >= OLSR_C, "SecondsToEmf - Can not convert a value less than OLSR_C");
|
||||
|
||||
// find the largest integer 'b' such that: T/C >= 2^b
|
||||
for (b = 0; (seconds / OLSR_C) >= (1 << b); ++b)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user