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

Unified Diff: net/dns/record_rdata.cc

Issue 2118383006: Fix "conversion of size_t to unsigned int" warning (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « net/dns/record_rdata.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/record_rdata.cc
diff --git a/net/dns/record_rdata.cc b/net/dns/record_rdata.cc
index ff9434b489e11a958f44b7d485a00279d28838d8..1180d46973d0ed2dbd5c2601225f743ec33b85ab 100644
--- a/net/dns/record_rdata.cc
+++ b/net/dns/record_rdata.cc
@@ -259,6 +259,11 @@ uint16_t NsecRecordRdata::Type() const {
return NsecRecordRdata::kType;
}
+uint16_t NsecRecordRdata::bitmap_length() const {
+ DCHECK_LE(bitmap_.size(), 32u);
Ryan Sleevi 2016/07/06 15:28:58 It's unclear if you added this DCHECK as documenta
+ return static_cast<uint16_t>(bitmap_.size() * 8);
+}
+
bool NsecRecordRdata::IsEqual(const RecordRdata* other) const {
if (other->Type() != Type())
return false;
« no previous file with comments | « net/dns/record_rdata.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698