Skip to content

Commit

Permalink
Fix warning, stackoverflow (FluidGroup#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntnmrndn authored Oct 3, 2022
1 parent 2c8e26b commit 8f82fbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/BrightroomEngine/Library/Geometry.swift
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public struct PixelAspectRatio: Hashable {
public func _minimized() -> Self {
func gcd(_ a: CGFloat, _ b: CGFloat) -> CGFloat {
let r = a.truncatingRemainder(dividingBy: b)
if r != 0, r != .nan {
if r.isNormal {
return gcd(b, r)
} else {
return b
Expand Down

0 comments on commit 8f82fbd

Please sign in to comment.