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

Unified Diff: media/base/djb2.cc

Issue 1534273002: Switch to standard integer types in media/. (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
Index: media/base/djb2.cc
diff --git a/media/base/djb2.cc b/media/base/djb2.cc
index 8d47ed294e013f032ea4383a6f98cb3fee2cc621..b4b440e6791b72ecc10bad7f701394b8730e17e7 100644
--- a/media/base/djb2.cc
+++ b/media/base/djb2.cc
@@ -4,9 +4,9 @@
#include "media/base/djb2.h"
-uint32 DJB2Hash(const void* buf, size_t len, uint32 seed) {
- const uint8* src = reinterpret_cast<const uint8*>(buf);
- uint32 hash = seed;
+uint32_t DJB2Hash(const void* buf, size_t len, uint32_t seed) {
+ const uint8_t* src = reinterpret_cast<const uint8_t*>(buf);
+ uint32_t hash = seed;
for (size_t i = 0; i < len; ++i) {
hash = hash * 33 + src[i];
}
« no previous file with comments | « media/base/djb2.h ('k') | media/base/djb2_unittest.cc » ('j') | media/cdm/stub/stub_cdm.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698