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

Unified Diff: src/core/SkDebug.cpp

Issue 798723002: More win64 warning fixes (Closed) Base URL: https://skia.googlesource.com/skia.git@size_t
Patch Set: off_t is signed 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
« no previous file with comments | « include/core/SkTypes.h ('k') | src/core/SkDistanceFieldGen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkDebug.cpp
diff --git a/src/core/SkDebug.cpp b/src/core/SkDebug.cpp
index b705a650ea2ce237ffef6a0f9d39b252052f9aab..2257c7f6d8c9e72f61d86e87eeca94b4fa4a5762 100644
--- a/src/core/SkDebug.cpp
+++ b/src/core/SkDebug.cpp
@@ -56,4 +56,9 @@ size_t SkToSizeT(uintmax_t x) {
return (size_t)x;
}
+off_t SkToOffT(intmax_t x) {
+ SkASSERT((off_t)x == x);
+ return (off_t)x;
+}
+
#endif
« no previous file with comments | « include/core/SkTypes.h ('k') | src/core/SkDistanceFieldGen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698