diff options
author | synergy dev <synergye@codefi.re> | 2014-01-18 17:43:12 -0500 |
---|---|---|
committer | synergy dev <synergye@codefi.re> | 2014-01-18 17:43:53 -0500 |
commit | b73cce87638ee104a0411418bd0245b8cc803c79 (patch) | |
tree | 5ed0d00471b622c61c93c6ee7063771149d5d76b | |
parent | 52c430fc98ff1b8b9f683814587ee364d2be14c8 (diff) | |
download | voip-b73cce87638ee104a0411418bd0245b8cc803c79.tar.gz |
jni: rtp: fix c++11 narrowing violations
The best fix for these violations is to use
static casting
Change-Id: I5ce4e5ed57501cff9e6993e91175c3901adcc634
-rw-r--r-- | src/jni/rtp/AudioGroup.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jni/rtp/AudioGroup.cpp b/src/jni/rtp/AudioGroup.cpp index 691fcf4..5dce123 100644 --- a/src/jni/rtp/AudioGroup.cpp +++ b/src/jni/rtp/AudioGroup.cpp @@ -284,10 +284,10 @@ void AudioStream::encode(int tick, AudioStream *chain) if (duration >= 0 && duration < mSampleRate * DTMF_PERIOD) { duration += mSampleCount; int32_t buffer[4] = { - htonl(mDtmfMagic | mSequence), - htonl(mDtmfStart), - mSsrc, - htonl(mDtmfEvent | duration), + static_cast<int32_t>(htonl(mDtmfMagic | mSequence)), + static_cast<int32_t>(htonl(mDtmfStart)), + static_cast<int32_t>(mSsrc), + static_cast<int32_t>(htonl(mDtmfEvent | duration)), }; if (duration >= mSampleRate * DTMF_PERIOD) { buffer[3] |= htonl(1 << 23); |