From e64e5a34958e1dc31164e196bf2a108b520b8c94 Mon Sep 17 00:00:00 2001 From: WELCommand Date: Wed, 28 Mar 2018 19:31:32 +0800 Subject: [PATCH] fix (CGFloat)1.3 != 1.3 in ip4&iOS8 --- Demo/iOSDemo/JSPatchTests/newBlockTest.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demo/iOSDemo/JSPatchTests/newBlockTest.m b/Demo/iOSDemo/JSPatchTests/newBlockTest.m index f34cfed2..928d2a66 100644 --- a/Demo/iOSDemo/JSPatchTests/newBlockTest.m +++ b/Demo/iOSDemo/JSPatchTests/newBlockTest.m @@ -25,7 +25,7 @@ - (void)removeJPBlock { } - (void)performBlock:(CGFloat (^)(int arg1, CGPoint arg2, double arg3, CGFloat arg4, NSNumber *arg5, NSString *arg6, NSInteger arg7))block { - _success = (block(1, (CGPoint){3.3, 3.3}, 1.1, 1.1, @(11), @"4.4", 17) == 1 + 3.3 + 3.3 + 1.1 + 1.1 + 11 + 4.4 + 17) && (block(1, (CGPoint){3.3, 3.3}, 1.1, 1.1, @(11), @"4.4", 17) == 1 + 3.3 + 3.3 + 1.1 + 1.1 + 11 + 4.4 + 17); + _success = (block(1, (CGPoint){3.3, 3.3}, 1.1, 1.1, @(11), @"4.4", 17) == (CGFloat)(1 + 3.3 + 3.3 + 1.1 + 1.1 + 11 + 4.4 + 17)) && (block(1, (CGPoint){3.3, 3.3}, 1.1, 1.1, @(11), @"4.4", 17) == (CGFloat)(1 + 3.3 + 3.3 + 1.1 + 1.1 + 11 + 4.4 + 17)); } @end