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

Unified Diff: chrome/nacl/nacl_validation_query.h

Issue 11419270: Use size_t as the type of key_length and digest_length arguments of HMAC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix compilation errors Created 8 years, 1 month 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: chrome/nacl/nacl_validation_query.h
===================================================================
--- chrome/nacl/nacl_validation_query.h (revision 170598)
+++ chrome/nacl/nacl_validation_query.h (working copy)
@@ -38,7 +38,7 @@
class NaClValidationQuery {
public:
// SHA256 digest size.
- static const int kDigestLength = 32;
+ static const size_t kDigestLength = 32;
NaClValidationQuery(NaClValidationDB* db, const std::string& profile_key);
@@ -77,7 +77,7 @@
// code), so 4 times digest length means the buffer will not need to be
// compressed as an intermediate step in the expected use cases.
char buffer_[kDigestLength * 4];
- int buffer_length_;
+ size_t buffer_length_;
DISALLOW_COPY_AND_ASSIGN(NaClValidationQuery);
};

Powered by Google App Engine
This is Rietveld 408576698