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

Unified Diff: skia/ext/pixel_ref_utils_unittest.cc

Issue 382673002: Fixes for re-enabling more MSVC level 4 warnings: misc edition #2 (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: skia/ext/pixel_ref_utils_unittest.cc
diff --git a/skia/ext/pixel_ref_utils_unittest.cc b/skia/ext/pixel_ref_utils_unittest.cc
index bddbe657934d7f5e5a5f6c01193ef148594d72eb..dfd0ddb081ca9e4eee299d8c3642a758e6e3699e 100644
--- a/skia/ext/pixel_ref_utils_unittest.cc
+++ b/skia/ext/pixel_ref_utils_unittest.cc
@@ -36,7 +36,7 @@ class TestDiscardableShader : public SkShader {
static_cast<SkOrderedReadBuffer&>(flattenable_buffer);
SkReader32* reader = buffer.getReader32();
- reader->skip(-4);
+ reader->skip(static_cast<size_t>(-4)); //!!? Is this safe?
Peter Kasting 2014/07/09 22:19:54 This needs review. Static-casting a negative valu
Stephen White 2014/07/10 02:13:56 +vmpstr +junov Much of this code looks dubious. S
uint32_t toSkip = reader->readU32();
reader->skip(toSkip);

Powered by Google App Engine
This is Rietveld 408576698