diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2017-02-04 06:38:23 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2017-02-04 06:38:23 -0800 |
commit | 09e03d2385c301e68025da688831f50dd2e3734d (patch) | |
tree | 55da302ceb05d2537ac86e3083b75b57b97095ea /CyteKit | |
parent | ec89f5e6ae3a97b3f4f854f7baa35559e3d55457 (diff) |
On 64-bit some of these floats are really CGFloat.v1.1.28
Diffstat (limited to 'CyteKit')
-rw-r--r-- | CyteKit/WebViewController.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm index 83c8e91..6692c6c 100644 --- a/CyteKit/WebViewController.mm +++ b/CyteKit/WebViewController.mm @@ -146,7 +146,7 @@ float CYScrollViewDecelerationRateNormal; dlopen("/System/Library/Frameworks/MessageUI.framework/MessageUI", RTLD_GLOBAL | RTLD_LAZY); $MFMailComposeViewController = objc_getClass("MFMailComposeViewController"); - if (float *_UIScrollViewDecelerationRateNormal = reinterpret_cast<float *>(dlsym(RTLD_DEFAULT, "UIScrollViewDecelerationRateNormal"))) + if (CGFloat *_UIScrollViewDecelerationRateNormal = reinterpret_cast<CGFloat *>(dlsym(RTLD_DEFAULT, "UIScrollViewDecelerationRateNormal"))) CYScrollViewDecelerationRateNormal = *_UIScrollViewDecelerationRateNormal; else // XXX: this actually might be fast on some older systems: we should look into this CYScrollViewDecelerationRateNormal = 0.998; |