Bugzilla – Attachment #2170: bug fix for bug #1761
double tmp = 16*(seconds/(OLSR_C*(1<<b))-1);
// round it up. This results in the value for 'a'
a = (int) std::ceil (tmp);
a = (int) std::ceil (tmp-0.5);
// if 'a' is equal to 16: increment 'b' by one, and set 'a' to 0
if (a == 16)