From 9b3d84faf681a8b08c75411ac9c45b9fea120a70 Mon Sep 17 00:00:00 2001 From: Tigran <83982924+tsardaryanCamenAI@users.noreply.github.com> Date: Tue, 16 May 2023 23:04:31 +0200 Subject: [PATCH] Update LongRational.cs fix issue with 0 Denominator. --- src/ImageSharp/Primitives/LongRational.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImageSharp/Primitives/LongRational.cs b/src/ImageSharp/Primitives/LongRational.cs index e92875a98b..349a3028e9 100644 --- a/src/ImageSharp/Primitives/LongRational.cs +++ b/src/ImageSharp/Primitives/LongRational.cs @@ -203,7 +203,7 @@ internal readonly struct LongRational : IEquatable if (this.Numerator == 0) { - return new LongRational(0, 0); + return new LongRational(0, 1); } if (this.Numerator == this.Denominator)