Fixed small warning

This commit is contained in:
Ziver Koc 2017-11-01 16:25:58 +01:00
parent 8455ba5a43
commit c344856989

2
src/zutil/math/ZMath.java Normal file → Executable file
View file

@ -65,7 +65,7 @@ public class ZMath {
public static BigInteger[] pqFormula(BigInteger p, BigInteger q){
BigInteger[] ret = new BigInteger[2];
BigInteger t = p.divide( BigInteger.valueOf(2) );
ret[0] = ZMath.sqrt( t.multiply( t ).subtract( q ) );
ret[0] = sqrt( t.multiply( t ).subtract( q ) );
ret[1] = ret[0].negate();
t = t.negate();
ret[0] = ret[0].add( t );