Skip to content

Commit

Permalink
Fix compilation on gcc 4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
xhook committed Apr 4, 2013
1 parent 21f433b commit 8098652
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/audio_coding/neteq4/test/RTPtimeshift.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ int main(int argc, char* argv[])
WebRtc_UWord32 ATdiff = 0;
if (argc > 4)
{
if (argv[4] >= 0)
if (argv[4] != 0)
SNdiff = atoi(argv[4]) - packet.sequenceNumber();
if (argc > 5)
{
if (argv[5] >= 0)
if (argv[5] != 0)
ATdiff = atoi(argv[5]) - packet.time();
}
}
Expand Down
2 changes: 1 addition & 1 deletion modules/rtp_rtcp/source/rtp_payload_registry_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class RtpPayloadRegistryTest : public ::testing::Test {
bool audio = true;
ModuleRTPUtility::Payload returned_payload = { "name", audio, {
// Initialize the audio struct in this case.
{ kTypicalFrequency, kTypicalChannels, rate }
{ kTypicalFrequency, kTypicalChannels, static_cast<WebRtc_UWord32>(rate) }
}};

// Note: we return a new payload since the payload registry takes ownership
Expand Down

0 comments on commit 8098652

Please sign in to comment.