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

Unified Diff: components/proximity_auth/cryptauth/cryptauth_enrollment_utils.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
Index: components/proximity_auth/cryptauth/cryptauth_enrollment_utils.cc
diff --git a/components/proximity_auth/cryptauth/cryptauth_enrollment_utils.cc b/components/proximity_auth/cryptauth/cryptauth_enrollment_utils.cc
index 177d4dd99c6d048d7796ce157a7b4276b954d0a1..d44cb76fb49ae812729a10f4cbbb0a88c8c09c1b 100644
--- a/components/proximity_auth/cryptauth/cryptauth_enrollment_utils.cc
+++ b/components/proximity_auth/cryptauth/cryptauth_enrollment_utils.cc
@@ -5,6 +5,7 @@
#include "components/proximity_auth/cryptauth/cryptauth_enrollment_utils.h"
#include <math.h>
+#include <stddef.h>
#include "base/base64url.h"
#include "base/md5.h"
@@ -20,7 +21,7 @@ int64_t HashStringToInt64(const std::string& string) {
base::MD5Digest digest;
base::MD5Final(&digest, &context);
- // Fold the digest into an int64 value. |digest.a| is a 16-byte array, so we
+ // Fold the digest into an int64_t value. |digest.a| is a 16-byte array, so we
// sum the two 8-byte halves of the digest to create the hash.
int64_t hash = 0;
for (size_t i = 0; i < sizeof(digest.a); ++i) {

Powered by Google App Engine
This is Rietveld 408576698