diff options
author | Matthew Jordan <mjordan@digium.com> | 2015-03-28 12:31:39 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2015-03-28 12:31:39 +0000 |
commit | c0ff16036a6619e819db95199e619505696f5556 (patch) | |
tree | 7cd73ec0f92309bb3d91939f7cd007b60443b5f7 /channels | |
parent | 844bc76bef50be6bdeaf10010d9024ffd6aca948 (diff) |
clang compiler warnings: Fix -Wbitfield-constant-conversion warning
In chan_iax2, we attempt to assign a -1 to a bitfield. This gets caught by
clang, as it will truncate the -1 to a 1 implicitly.
Instead, we just assign the value a '1'.
Review: https://reviewboard.asterisk.org/r/4537/
ASTERISK-24917
Reported by: dkdegroot
patches:
rb4537.patch submitted by dkdegroot (License 6600)
........
Merged revisions 433683 from http://svn.asterisk.org/svn/asterisk/branches/11
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@433684 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_iax2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 379bbd2de..e1fbbd10d 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -11890,7 +11890,7 @@ immediatedial: if (iaxdebug && iaxs[fr->callno]) { ast_debug(1, "Received out of order packet... (type=%u, subclass %d, ts = %u, last = %u)\n", f.frametype, f.subclass.integer, fr->ts, iaxs[fr->callno]->last); } - fr->outoforder = -1; + fr->outoforder = 1; } fr->cacheable = ((f.frametype == AST_FRAME_VOICE) || (f.frametype == AST_FRAME_VIDEO)); if (iaxs[fr->callno]) { |