paulirwin commented on code in PR #897: URL: https://github.com/apache/lucenenet/pull/897#discussion_r1462178388
########## src/Lucene.Net.Tests/Util/TestMathUtil.cs: ########## @@ -58,10 +57,11 @@ internal static long RandomLong() } // slow version used for testing - private static bool TryGetGcd(long a, long b, out long result) + // LUCENENET: semantics changed to a Try pattern as BigInteger could overflow long + private static bool TryGetGcd(long l1, long l2, out long result) { result = 0; - var c = System.Numerics.BigInteger.GreatestCommonDivisor(a, b); + var c = System.Numerics.BigInteger.GreatestCommonDivisor(l1, l2); Review Comment: Done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@lucenenet.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org