diff options
Diffstat (limited to 'bench/MathBench.cpp')
-rw-r--r-- | bench/MathBench.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/MathBench.cpp b/bench/MathBench.cpp index a5cc033c6f..fb35a8aafe 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); |