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

Unified Diff: include/core/SkTypes.h

Issue 147053003: fix (some) 64bit warnings -- size_t -> int (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 11 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 | « no previous file | include/core/SkWriter32.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkTypes.h
diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h
index 4e2f0c159a8594083d73ef32f4eea37560aead7c..7db3b190d75e04b871671a157f0480cf5284f06a 100644
--- a/include/core/SkTypes.h
+++ b/include/core/SkTypes.h
@@ -217,6 +217,7 @@ typedef uint8_t SkBool8;
SK_API uint16_t SkToU16(uintmax_t);
SK_API int32_t SkToS32(intmax_t);
SK_API uint32_t SkToU32(uintmax_t);
+ SK_API int SkToInt(intmax_t);
#else
#define SkToS8(x) ((int8_t)(x))
#define SkToU8(x) ((uint8_t)(x))
@@ -224,6 +225,7 @@ typedef uint8_t SkBool8;
#define SkToU16(x) ((uint16_t)(x))
#define SkToS32(x) ((int32_t)(x))
#define SkToU32(x) ((uint32_t)(x))
+ #define SkToInt(x) ((int)(x))
#endif
/** Returns 0 or 1 based on the condition
« no previous file with comments | « no previous file | include/core/SkWriter32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698