Fixes for Windows Release compiler complaints (overflow in const arith)

http://codereview.appspot.com/6210056/



git-svn-id: http://skia.googlecode.com/svn/trunk@3926 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/ScalarTest.cpp b/tests/ScalarTest.cpp
index cc88e74..ef7db32 100644
--- a/tests/ScalarTest.cpp
+++ b/tests/ScalarTest.cpp
@@ -58,6 +58,13 @@
     REPORTER_ASSERT(reporter, !!sk_float_isnan(value) == (fc == kNaN));
 }
 
+#if defined _WIN32
+#pragma warning ( push )
+// we are intentionally causing an overflow here
+//      (warning C4756: overflow in constant arithmetic)
+#pragma warning ( disable : 4756 )
+#endif
+
 static void test_isfinite(skiatest::Reporter* reporter) {
 #ifdef SK_CAN_USE_FLOAT
     struct Rec {
@@ -128,6 +135,10 @@
 #endif
 }
 
+#if defined _WIN32
+#pragma warning ( pop )
+#endif
+
 static void TestScalar(skiatest::Reporter* reporter) {
     test_isfinite(reporter);
 }