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

Unified Diff: third_party/brotli/enc/hash.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/enc/cluster.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/brotli/enc/hash.h
diff --git a/third_party/brotli/enc/hash.h b/third_party/brotli/enc/hash.h
index 8716863bff01b8fbfb4d45e2864ce5310333a2c1..227be1d1f6f546da77e4f23a237b562fd791525e 100644
--- a/third_party/brotli/enc/hash.h
+++ b/third_party/brotli/enc/hash.h
@@ -656,7 +656,7 @@ class HashToBinaryTree {
void Init(int lgwin, size_t position, size_t bytes, bool is_last) {
if (need_init_) {
window_mask_ = (1u << lgwin) - 1u;
- invalid_pos_ = static_cast<uint32_t>(-window_mask_);
+ invalid_pos_ = static_cast<uint32_t>(0 - window_mask_);
for (uint32_t i = 0; i < kBucketSize; i++) {
buckets_[i] = invalid_pos_;
}
« no previous file with comments | « third_party/brotli/enc/cluster.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698