Re: inetmib1: Avoid idempotent operation in findSupportedQuery function (Clang)
8 Oct
2011
8 Oct
'11
7:03 p.m.
2011/10/2 Frédéric Delanoy <frederic.delanoy(a)gmail.com>
- for (i = (indexLow + indexHigh) / 2; !impl && indexLow <= indexHigh; - i = (indexLow + indexHigh) / 2) + for (i = indexHigh / 2; !impl && indexLow <= indexHigh; i = (indexLow + indexHigh) / 2)
How about following code: while (!impl && indexLow <= indexHigh) { /* ... */ i = (indexLow + indexHigh) / 2; /* ... */ } Octavian
5180
Age (days ago)
5180
Last active (days ago)
0 comments
1 participants
participants (1)
-
Octavian Voicu