Index: bench/MathBench.cpp |
diff --git a/bench/MathBench.cpp b/bench/MathBench.cpp |
index a5cc033c6fc63f72c9d4f707da1a69533190413f..fb35a8aafec786df3967e2af4f1343afb8a7c722 100644 |
--- a/bench/MathBench.cpp |
+++ b/bench/MathBench.cpp |
@@ -126,7 +126,7 @@ private: |
static inline float SkFastInvSqrt(float x) { |
float xhalf = 0.5f*x; |
- int i = *SkTCast<int*>(&x); |
+ uint32_t i = *SkTCast<uint32_t*>(&x); |
i = 0x5f3759df - (i>>1); |
x = *SkTCast<float*>(&i); |
x = x*(1.5f-xhalf*x*x); |