From 5d61fcddd479319473e0a9b891cff59c5884a173 Mon Sep 17 00:00:00 2001 From: Phil Steitz Date: Sat, 9 Nov 2013 22:34:10 +0000 Subject: [PATCH] Replaced deprecated method. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540418 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/math3/util/Combinations.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/math3/util/Combinations.java b/src/main/java/org/apache/commons/math3/util/Combinations.java index 51b3c5613..be758f020 100644 --- a/src/main/java/org/apache/commons/math3/util/Combinations.java +++ b/src/main/java/org/apache/commons/math3/util/Combinations.java @@ -399,7 +399,7 @@ public class Combinations implements Iterable { throw new OutOfRangeException(digit, 0, n - 1); } - ret += c[i] * ArithmeticUtils.pow(n, (long) i); + ret += c[i] * ArithmeticUtils.pow(n, i); } return ret; }