summaryrefslogtreecommitdiff
path: root/patches/www-client/chromium-73.0.3683.75/sequence-point.patch
blob: 41c97bb958ab42b66f33b3296b3da29b2eee636f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
description: fix undefined order in which expressions are evaluated (-Wsequence-point)
author: Michael Gilbert <mgilbert@debian.org>

--- a/components/download/internal/common/download_item_impl.cc
+++ b/components/download/internal/common/download_item_impl.cc
@@ -593,7 +593,9 @@ void DownloadItemImpl::UpdateResumptionI
     bytes_wasted_ = 0;
   }
 
-  auto_resume_count_ = user_resume ? 0 : ++auto_resume_count_;
+  ++auto_resume_count_;
+  if (user_resume)
+    auto_resume_count_ = 0;
 }
 
 void DownloadItemImpl::Cancel(bool user_cancel) {
--- a/third_party/blink/renderer/platform/fonts/opentype/open_type_caps_support.cc
+++ b/third_party/blink/renderer/platform/fonts/opentype/open_type_caps_support.cc
@@ -152,8 +152,8 @@ OpenTypeCapsSupport::FontFormat OpenType
                             hb_blob_get_length(mort_blob.get());
     bool has_gsub = hb_ot_layout_has_substitution(hb_face);
     font_format_ = has_morx_or_mort&& !has_gsub
-                       ? font_format_ = FontFormat::kAat
-                       : font_format_ = FontFormat::kOpenType;
+                       ? FontFormat::kAat
+                       : FontFormat::kOpenType;
   }
   return font_format_;
 }