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

Unified Diff: src/core/SkVarAlloc.h

Issue 795223002: Fix some win64 warnings. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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: src/core/SkVarAlloc.h
diff --git a/src/core/SkVarAlloc.h b/src/core/SkVarAlloc.h
index 2e8f19c8fe01e6efbdcc16c08331b19da4df6484..403199272186bc8b0e8fab2cbcfd5ae1e7c2144a 100644
--- a/src/core/SkVarAlloc.h
+++ b/src/core/SkVarAlloc.h
@@ -19,7 +19,7 @@ public:
char* ptr = fByte;
fByte += bytes;
- fRemaining -= bytes;
+ fRemaining = SkToU32(fRemaining - bytes);
return ptr;
}

Powered by Google App Engine
This is Rietveld 408576698