]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
cast constants into the proper type (bug #4686)
authorKevin P. Fleming <kpfleming@digium.com>
Tue, 12 Jul 2005 15:13:39 +0000 (15:13 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Tue, 12 Jul 2005 15:13:39 +0000 (15:13 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6106 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channel.c

index ffebf960432e0e715c7900a830224c39cba40e8c..ef14f73e5b57a7f3eb8add7a62a17eaf4ac6f7c0 100755 (executable)
--- a/channel.c
+++ b/channel.c
@@ -3391,7 +3391,7 @@ ast_group_t ast_get_group(char *s)
                        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 @@ char *ast_print_group(char *buf, int buflen, ast_group_t group)
                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 {