From 4a66b1db8d224cf26d7c20ef843235be811441b5 Mon Sep 17 00:00:00 2001 From: Paul Irwin Date: Mon, 22 Jan 2024 10:18:23 -0700 Subject: [PATCH] Revert rename of parameters that matched Java code --- src/Lucene.Net.Tests/Util/TestMathUtil.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Lucene.Net.Tests/Util/TestMathUtil.cs b/src/Lucene.Net.Tests/Util/TestMathUtil.cs index 7015b5cc3d..74beb8982c 100644 --- a/src/Lucene.Net.Tests/Util/TestMathUtil.cs +++ b/src/Lucene.Net.Tests/Util/TestMathUtil.cs @@ -58,10 +58,11 @@ internal static long RandomLong() // slow version used for testing // LUCENENET: semantics changed to a Try pattern as BigInteger could overflow long - private static bool TryGetGcd(long l1, long l2, out long result) + // LUCENENET: l1/l2 parameters renamed to a/b to potentially avoid reader confusion with 11/12 + private static bool TryGetGcd(long a, long b, out long result) { result = 0; - var c = System.Numerics.BigInteger.GreatestCommonDivisor(l1, l2); + var c = System.Numerics.BigInteger.GreatestCommonDivisor(a, b); if (c <= long.MaxValue && c >= long.MinValue) { result = (long)c;