aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/utils/SkRandom.h
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-02-07 19:52:30 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-02-07 19:52:30 +0000
commit753a362cfc336062cae7b55c285332a0d1c8ae72 (patch)
treecf0b587eafea96fe121845640ced13e6f1f29633 /include/utils/SkRandom.h
parentfe1b536bb7af523995549b64ad19de6685e11411 (diff)
Use SkBits2Float in SkRandom
Diffstat (limited to 'include/utils/SkRandom.h')
-rw-r--r--include/utils/SkRandom.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/utils/SkRandom.h b/include/utils/SkRandom.h
index 6ab1cd1723..3e2ef201ad 100644
--- a/include/utils/SkRandom.h
+++ b/include/utils/SkRandom.h
@@ -197,7 +197,7 @@ public:
*/
float nextF() {
unsigned int floatint = 0x3f800000 | (this->nextU() >> 9);
- float f = *SkTCast<float*>(&floatint) - 1.0f;
+ float f = SkBits2Float(floatint) - 1.0f;
return f;
}