Skip to content

Commit

Permalink
fix: use NSNumber instead of int
Browse files Browse the repository at this point in the history
  • Loading branch information
jakex7 committed Dec 2, 2024
1 parent 7667b97 commit d8cf917
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apple/Filters/RNSVGFeComposite.mm
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,10 @@ - (CIImage *)applyFilter:(NSMutableDictionary<NSString *, CIImage *> *)results p
} else if (self.operator1 == SVG_FECOMPOSITE_OPERATOR_ARITHMETIC) {
[filter setValue:inputImage1 forKey:@"inputImage1"];
[filter setValue:inputImage2 forKey:@"inputImage2"];
[filter setValue:(self.k1 != nil ? self.k1 : 0) forKey:@"inputK1"];
[filter setValue:(self.k2 != nil ? self.k2 : 0) forKey:@"inputK2"];
[filter setValue:(self.k3 != nil ? self.k3 : 0) forKey:@"inputK3"];
[filter setValue:(self.k4 != nil ? self.k4 : 0) forKey:@"inputK4"];
[filter setValue:(self.k1 != nil ? self.k1 : @0) forKey:@"inputK1"];
[filter setValue:(self.k2 != nil ? self.k2 : @0) forKey:@"inputK2"];
[filter setValue:(self.k3 != nil ? self.k3 : @0) forKey:@"inputK3"];
[filter setValue:(self.k4 != nil ? self.k4 : @0) forKey:@"inputK4"];
} else {
[filter setValue:inputImage1 forKey:@"inputImage"];
[filter setValue:inputImage2 forKey:@"inputBackgroundImage"];
Expand Down

0 comments on commit d8cf917

Please sign in to comment.