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

Unified Diff: third_party/brotli/enc/cluster.h

Issue 1981333002: Fix Brotli warnings on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « third_party/brotli/README.chromium ('k') | third_party/brotli/enc/hash.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/brotli/enc/cluster.h
diff --git a/third_party/brotli/enc/cluster.h b/third_party/brotli/enc/cluster.h
index 5054faf791d6ab237fa792e65220517fbf848658..28d7c987786281cd61406174555eaffe8c32645f 100644
--- a/third_party/brotli/enc/cluster.h
+++ b/third_party/brotli/enc/cluster.h
@@ -63,7 +63,7 @@ void CompareAndPushToQueue(const HistogramType* out,
idx1 = t;
}
bool store_pair = false;
- HistogramPair p;
+ HistogramPair p = {};
p.idx1 = idx1;
p.idx2 = idx2;
p.cost_diff = 0.5 * ClusterCostDiff(cluster_size[idx1], cluster_size[idx2]);
« no previous file with comments | « third_party/brotli/README.chromium ('k') | third_party/brotli/enc/hash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698