Merge pull request #431 from tewha/patch-4
Fixes warning about using == on floats.
This commit is contained in:
commit
a144c8f0a7
@ -161,9 +161,12 @@ static dispatch_queue_t image_request_operation_processing_queue() {
|
||||
}
|
||||
|
||||
- (void)setImageScale:(CGFloat)imageScale {
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wfloat-equal"
|
||||
if (imageScale == _imageScale) {
|
||||
return;
|
||||
}
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
_imageScale = imageScale;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user