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

Unified Diff: firmware/lib/cryptolib/rsa.c

Issue 2871019: More cleanup of MSVC errors (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Created 10 years, 6 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
« firmware/Makefile ('K') | « firmware/lib/cgptlib/include/gpt.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: firmware/lib/cryptolib/rsa.c
diff --git a/firmware/lib/cryptolib/rsa.c b/firmware/lib/cryptolib/rsa.c
index 930d91b4a332e6ffb14c9ec228b559478c408000..2aef52cfa3d07ec6692d718d9c07de580c7b9df1 100644
--- a/firmware/lib/cryptolib/rsa.c
+++ b/firmware/lib/cryptolib/rsa.c
@@ -170,7 +170,7 @@ int RSAVerify(const RSAPublicKey *key,
}
/* Check if digest matches. */
- for (; i < sig_len; ++i) {
+ for (; i < (int)sig_len; ++i) {
if (buf[i] != *hash++) {
#ifndef NDEBUG
/* TODO(gauravsh): Replace with a macro call for logging. */
« firmware/Makefile ('K') | « firmware/lib/cgptlib/include/gpt.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698