Skip to content

Commit 9b3d84f

Browse files
Update LongRational.cs
fix issue with 0 Denominator.
1 parent 2ddecc6 commit 9b3d84f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ImageSharp/Primitives/LongRational.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public LongRational Simplify()
203203

204204
if (this.Numerator == 0)
205205
{
206-
return new LongRational(0, 0);
206+
return new LongRational(0, 1);
207207
}
208208

209209
if (this.Numerator == this.Denominator)

0 commit comments

Comments
 (0)