[asterisk-commits] trunk - r8059 /trunk/pbx.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Fri Jan 13 11:35:13 CST 2006
Author: bweschke
Date: Fri Jan 13 11:35:12 2006
New Revision: 8059
URL: http://svn.digium.com/view/asterisk?rev=8059&view=rev
Log:
Another patch against this code (the right one now) to deal with cyclic ranges. #6230
Modified:
trunk/pbx.c
Modified: trunk/pbx.c
URL: http://svn.digium.com/view/asterisk/trunk/pbx.c?rev=8059&r1=8058&r2=8059&view=diff
==============================================================================
--- trunk/pbx.c (original)
+++ trunk/pbx.c Fri Jan 13 11:35:12 2006
@@ -3747,8 +3747,8 @@
e = s;
}
/* Fill the mask. Remember that ranges are cyclic */
- mask = 1 << s; /* last element in case s == e */
- for ( ; s<=e; s++) {
+ mask = 1 << e; /* initialize with last element */
+ for ( ; s != e; s++) {
if (s == max)
s = 0 ;
mask |= (1 << s);
More information about the asterisk-commits
mailing list