[Asterisk-cvs] asterisk channel.c,1.216,1.217
kpfleming at lists.digium.com
kpfleming at lists.digium.com
Tue Jul 12 11:05:32 CDT 2005
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv17044
Modified Files:
channel.c
Log Message:
cast constants into the proper type (bug #4686)
Index: channel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channel.c,v
retrieving revision 1.216
retrieving revision 1.217
diff -u -d -r1.216 -r1.217
--- channel.c 9 Jul 2005 20:37:59 -0000 1.216
+++ channel.c 12 Jul 2005 15:13:39 -0000 1.217
@@ -3391,7 +3391,7 @@
if ((x > 63) || (x < 0)) {
ast_log(LOG_WARNING, "Ignoring invalid group %d (maximum group is 63)\n", x);
} else
- group |= (1 << x);
+ group |= ((ast_group_t) 1 << x);
}
}
return group;
@@ -3462,7 +3462,7 @@
return(buf);
for (i=0; i<=63; i++) { /* Max group is 63 */
- if (group & (1 << i)) {
+ if (group & ((ast_group_t) 1 << i)) {
if (!first) {
strncat(buf, ", ", buflen);
} else {
More information about the svn-commits
mailing list