From 348971e4db95292b2301f41e84d005b272031800 Mon Sep 17 00:00:00 2001 From: Christian Mehlis Date: Mon, 20 Jan 2014 14:58:44 +0100 Subject: [PATCH] trickle: replace call to pow (base of 2) --- sys/net/routing/rpl/trickle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/routing/rpl/trickle.c b/sys/net/routing/rpl/trickle.c index ff08ac8f64..6ecc7a07c5 100644 --- a/sys/net/routing/rpl/trickle.c +++ b/sys/net/routing/rpl/trickle.c @@ -99,7 +99,7 @@ void start_trickle(uint8_t DIOIntMin, uint8_t DIOIntDoubl, { c = 0; k = DIORedundancyConstant; - Imin = pow(2, DIOIntMin); + Imin = (1 << DIOIntMin); Imax = DIOIntDoubl; /* Eigentlich laut Spezifikation erste Bestimmung von I wie auskommentiert: */ /* I = Imin + ( rand() % ( (Imin << Imax) - Imin + 1 ) ); */