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

Unified Diff: include/core/SkTypes.h

Issue 1737363002: fix undefined signed shifts (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: try again on nan Created 4 years, 10 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 | « include/core/SkCanvas.h ('k') | include/private/SkFloatBits.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 756eae862839990a22775303f54cdb2a2308d243..5831ba3e80fa1093e681f20341ba3a7ef43e3d82 100644
--- a/include/core/SkTypes.h
+++ b/include/core/SkTypes.h
@@ -290,7 +290,7 @@ typedef uint8_t SkBool8;
#define SK_MinS32 -SK_MaxS32
#define SK_MaxU32 0xFFFFFFFF
#define SK_MinU32 0
-#define SK_NaN32 (1 << 31)
+#define SK_NaN32 ((int) (1U << 31))
/** Returns true if the value can be represented with signed 16bits
*/
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/private/SkFloatBits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698