blob: 3d1a0f7687354eac70a05a5ca030b4f93087a242 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
diff --git a/third_party/zlib/google/zip_internal.cc b/third_party/zlib/google/zip_internal.cc
index 378bc04632..2fb9283909 100644
--- a/third_party/zlib/google/zip_internal.cc
+++ b/third_party/zlib/google/zip_internal.cc
@@ -261,12 +261,12 @@ zip_fileinfo TimeToZipFileInfo(const base::Time& file_time) {
// Hence the fail safe option is to leave the date unset. Some programs
// might show the unset date as 1980-0-0 which is invalid.
zip_info.tmz_date = {
- .tm_sec = static_cast<uInt>(file_time_parts.second),
- .tm_min = static_cast<uInt>(file_time_parts.minute),
- .tm_hour = static_cast<uInt>(file_time_parts.hour),
- .tm_mday = static_cast<uInt>(file_time_parts.day_of_month),
- .tm_mon = static_cast<uInt>(file_time_parts.month - 1),
- .tm_year = static_cast<uInt>(file_time_parts.year)};
+ .tm_sec = static_cast<int>(file_time_parts.second),
+ .tm_min = static_cast<int>(file_time_parts.minute),
+ .tm_hour = static_cast<int>(file_time_parts.hour),
+ .tm_mday = static_cast<int>(file_time_parts.day_of_month),
+ .tm_mon = static_cast<int>(file_time_parts.month - 1),
+ .tm_year = static_cast<int>(file_time_parts.year)};
}
return zip_info;
|