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

Unified Diff: components/rappor/bloom_filter.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years 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 | « components/rappor/bloom_filter.h ('k') | components/rappor/bloom_filter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/rappor/bloom_filter.cc
diff --git a/components/rappor/bloom_filter.cc b/components/rappor/bloom_filter.cc
index 6c6f65409151fa37f089a9bf86c4ea756c418756..bf4c874e5acc4795f9a0e7cefb9a7f7fc8c7289b 100644
--- a/components/rappor/bloom_filter.cc
+++ b/components/rappor/bloom_filter.cc
@@ -4,6 +4,8 @@
#include "components/rappor/bloom_filter.h"
+#include <stddef.h>
+
#include "base/logging.h"
#include "third_party/smhasher/src/City.h"
@@ -56,7 +58,7 @@ uint64_t GetBloomBits(uint32_t bytes_size,
uint32_t hash_function_count,
uint32_t hash_seed_offset,
const std::string& str) {
- // Make sure result fits in uint64.
+ // Make sure result fits in uint64_t.
DCHECK_LE(bytes_size, 8u);
uint64_t output = 0;
const uint32_t bits_size = bytes_size * 8;
« no previous file with comments | « components/rappor/bloom_filter.h ('k') | components/rappor/bloom_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698