From: Jay Freeman (saurik) Date: Sat, 4 Feb 2017 14:38:23 +0000 (-0800) Subject: On 64-bit some of these floats are really CGFloat. X-Git-Tag: v1.1.28^0 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/09e03d2385c301e68025da688831f50dd2e3734d On 64-bit some of these floats are really CGFloat. --- diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm index 83c8e91e..6692c6cb 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(dlsym(RTLD_DEFAULT, "UIScrollViewDecelerationRateNormal"))) + if (CGFloat *_UIScrollViewDecelerationRateNormal = reinterpret_cast(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; diff --git a/iPhonePrivate.h b/iPhonePrivate.h index 46cde9fa..19af1aa0 100644 --- a/iPhonePrivate.h +++ b/iPhonePrivate.h @@ -72,8 +72,8 @@ static const UIActivityIndicatorViewStyle UIActivityIndicatorViewStyleWhiteTiny( - (void) setDirectionalScrolling:(BOOL)directional; - (void) setEventMode:(NSInteger)mode; - (void) setOffset:(CGPoint)offset; -- (void) setScrollDecelerationFactor:(float)factor; -- (void) setScrollHysteresis:(float)hysteresis; +- (void) setScrollDecelerationFactor:(CGFloat)factor; +- (void) setScrollHysteresis:(CGFloat)hysteresis; - (void) setScrollerIndicatorStyle:(UIScrollViewIndicatorStyle)style; - (void) setThumbDetectionEnabled:(BOOL)enabled; @end @@ -393,14 +393,14 @@ typedef enum { @end @interface UIScrollView (iOS_3_0) -@property(assign,nonatomic) float decelerationRate; +@property(assign,nonatomic) CGFloat decelerationRate; @end @interface UIWebView (iOS_3_0) @property(assign,nonatomic) NSUInteger dataDetectorTypes; @end -extern float const UIScrollViewDecelerationRateNormal; +extern CGFloat const UIScrollViewDecelerationRateNormal; #endif//AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER // }}}