aboutsummaryrefslogtreecommitdiffstats
path: root/main/translate.c
diff options
context:
space:
mode:
authorjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2009-07-25 06:19:50 +0000
committerjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2009-07-25 06:19:50 +0000
commit1d803dbe9e9c220c92318862e515d25c09c225e1 (patch)
treebd206e557aca3f16b347bbbcbc1a12f2b83955ad /main/translate.c
parent97c2d16e9efd968eb829123a5ebbd6cc6a8637cd (diff)
Fix compiling under dev-mode with gcc 4.4.0.
Mostly trivial changes, but I did not know of any other way to fix the "dereferencing type-punned pointer will break strict-aliasing rules" error without creating a tmp variable in chan_skinny. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@208746 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/translate.c')
-rw-r--r--main/translate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/translate.c b/main/translate.c
index 598520c07..e801e0e44 100644
--- a/main/translate.c
+++ b/main/translate.c
@@ -920,7 +920,7 @@ unsigned int ast_translate_available_formats(unsigned int dest, unsigned int src
destination format. */
for (x = 1; src_audio && x < AST_FORMAT_MAX_AUDIO; x <<= 1) {
/* if this is not a desired format, nothing to do */
- if (!dest & x)
+ if ((!dest) & x)
continue;
/* if the source is supplying this format, then
@@ -946,7 +946,7 @@ unsigned int ast_translate_available_formats(unsigned int dest, unsigned int src
destination format. */
for (; src_video && x < AST_FORMAT_MAX_VIDEO; x <<= 1) {
/* if this is not a desired format, nothing to do */
- if (!dest & x)
+ if ((!dest) & x)
continue;
/* if the source is supplying this format, then