From f382cb2c9d7ddcce87e5016fe96b10bb11d5d205 Mon Sep 17 00:00:00 2001 From: routersys Date: Fri, 2 Oct 2026 13:18:57 +0900 Subject: [PATCH] =?UTF-8?q?=E8=A8=B1=E5=AE=B9=E5=80=A4=E3=81=AE=E5=85=A5?= =?UTF-8?q?=E5=8A=9B=E3=81=AE=E7=A2=BA=E8=AA=8D=E3=81=8B=E3=82=89=E9=87=8D?= =?UTF-8?q?=E3=81=AA=E3=81=A3=E3=81=9F=E9=83=A8=E5=88=86=E3=82=92=E9=99=A4?= =?UTF-8?q?=E3=81=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ComputeGuard/ComputeTolerance.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ComputeGuard/ComputeTolerance.cs b/ComputeGuard/ComputeTolerance.cs index 2984e03..2a65f0b 100644 --- a/ComputeGuard/ComputeTolerance.cs +++ b/ComputeGuard/ComputeTolerance.cs @@ -4,12 +4,12 @@ internal readonly record struct ComputeTolerance { public ComputeTolerance(double ulps, double scale, int flushedOperations) { - if (!double.IsFinite(ulps) || ulps < 0d) + if (ulps < 0d) { throw new ArgumentOutOfRangeException(nameof(ulps)); } - if (!double.IsFinite(scale) || scale < 0d) + if (scale < 0d) { throw new ArgumentOutOfRangeException(nameof(scale)); }