Index: src/core/SkScalar.cpp |
diff --git a/src/core/SkScalar.cpp b/src/core/SkScalar.cpp |
index 87a5073e14655744571ebfcf5bfbddbb6e4558d7..a303787aef916a8fc98726e3a3ccfa40556a43a5 100644 |
--- a/src/core/SkScalar.cpp |
+++ b/src/core/SkScalar.cpp |
@@ -9,6 +9,9 @@ |
#include "SkMath.h" |
#include "SkScalar.h" |
+static_assert(SK_MaxS32Scalar == SkIntToScalar(SkScalarTruncToInt(SK_MaxS32Scalar)), |
+ "Value of SK_MaxS32Scalar is incorrect."); |
+ |
SkScalar SkScalarInterpFunc(SkScalar searchKey, const SkScalar keys[], |
const SkScalar values[], int length) { |
SkASSERT(length > 0); |