Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(317)

Unified Diff: webrtc/api/datachannel.cc

Issue 2074423002: Fix some sign-compare warnings in webrtc/api. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixed Android Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/api/datachannel.cc
diff --git a/webrtc/api/datachannel.cc b/webrtc/api/datachannel.cc
index 5a18e6f1e8ac62e567980c48a475b4e52a58bdc9..3435fa50d5a26e7bbf7edfd911a70d6a37cef42c 100644
--- a/webrtc/api/datachannel.cc
+++ b/webrtc/api/datachannel.cc
@@ -384,7 +384,8 @@ void DataChannel::OnDataReceived(cricket::DataChannel* channel,
}
void DataChannel::OnStreamClosedRemotely(uint32_t sid) {
- if (data_channel_type_ == cricket::DCT_SCTP && sid == config_.id) {
+ if (data_channel_type_ == cricket::DCT_SCTP &&
+ sid == static_cast<uint32_t>(config_.id)) {
Close();
}
}

Powered by Google App Engine
This is Rietveld 408576698