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

Unified Diff: ui/views/corewm/cursor_height_provider_win.cc

Issue 388893003: Fixes for re-enabling more MSVC level 4 warnings: ui/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
Index: ui/views/corewm/cursor_height_provider_win.cc
diff --git a/ui/views/corewm/cursor_height_provider_win.cc b/ui/views/corewm/cursor_height_provider_win.cc
index 97ed7a3465e5ab6fac56d1a4497c8d01e7fabb5b..0d28d3801aa8ce2d24f89339f054eaddb073de17 100644
--- a/ui/views/corewm/cursor_height_provider_win.cc
+++ b/ui/views/corewm/cursor_height_provider_win.cc
@@ -91,7 +91,7 @@ int CalculateCursorHeight(HCURSOR cursor_handle) {
// Rows are padded to full DWORDs. OR with this mask will set them to 1
// to simplify matching with |transparent_mask|.
- uint32_t last_byte_mask = ~0;
+ uint32_t last_byte_mask = 0xFFFFFFFF;
const unsigned char bits_to_shift = sizeof(last_byte_mask) * 8 -
(bitmap_info.bmiHeader.biWidth % kBitsPeruint32);
if (bits_to_shift != kBitsPeruint32)
« ui/native_theme/native_theme_win.cc ('K') | « ui/views/controls/scrollbar/native_scroll_bar.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698