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 {

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to