aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-12 15:13:39 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-12 15:13:39 +0000
commitf4fecc342e8afb87228b12f167f62be3474441be (patch)
tree1c8c67178384a1fdb7e9757504adaffb84c56db7 /channel.c
parentbe462a3f0529df7b1d6fe39d6656561304337226 (diff)
cast constants into the proper type (bug #4686)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6106 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channel.c b/channel.c
index ffebf9604..ef14f73e5 100755
--- 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 {