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

Unified Diff: net/cert/x509_certificate_win.cc

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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 | « net/cert/x509_certificate_unittest.cc ('k') | net/cookies/cookie_monster.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/x509_certificate_win.cc
diff --git a/net/cert/x509_certificate_win.cc b/net/cert/x509_certificate_win.cc
index 0bed756a90570bfff853ab184a57befa291c2a95..c965f6965c216a859f922ec5bf479d0ae13bdfe7 100644
--- a/net/cert/x509_certificate_win.cc
+++ b/net/cert/x509_certificate_win.cc
@@ -37,14 +37,14 @@ typedef crypto::ScopedCAPIHandle<
void ExplodedTimeToSystemTime(const base::Time::Exploded& exploded,
SYSTEMTIME* system_time) {
- system_time->wYear = exploded.year;
- system_time->wMonth = exploded.month;
- system_time->wDayOfWeek = exploded.day_of_week;
- system_time->wDay = exploded.day_of_month;
- system_time->wHour = exploded.hour;
- system_time->wMinute = exploded.minute;
- system_time->wSecond = exploded.second;
- system_time->wMilliseconds = exploded.millisecond;
+ system_time->wYear = static_cast<WORD>(exploded.year);
+ system_time->wMonth = static_cast<WORD>(exploded.month);
+ system_time->wDayOfWeek = static_cast<WORD>(exploded.day_of_week);
+ system_time->wDay = static_cast<WORD>(exploded.day_of_month);
+ system_time->wHour = static_cast<WORD>(exploded.hour);
+ system_time->wMinute = static_cast<WORD>(exploded.minute);
+ system_time->wSecond = static_cast<WORD>(exploded.second);
+ system_time->wMilliseconds = static_cast<WORD>(exploded.millisecond);
}
//-----------------------------------------------------------------------------
« no previous file with comments | « net/cert/x509_certificate_unittest.cc ('k') | net/cookies/cookie_monster.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698