Browse Source
Update LongRational.cs
fix issue with 0 Denominator.
pull/2453/head
Tigran
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/ImageSharp/Primitives/LongRational.cs
|
|
@ -203,7 +203,7 @@ internal readonly struct LongRational : IEquatable<LongRational> |
|
|
|
|
|
|
|
|
if (this.Numerator == 0) |
|
|
if (this.Numerator == 0) |
|
|
{ |
|
|
{ |
|
|
return new LongRational(0, 0); |
|
|
return new LongRational(0, 1); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (this.Numerator == this.Denominator) |
|
|
if (this.Numerator == this.Denominator) |
|
|
|