Explorar o código

fixing make_affine()

tristangurtler %!s(int64=3) %!d(string=hai) anos
pai
achega
cfed4e2da5
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      bgn2/src/Bipoint.cpp

+ 2 - 2
bgn2/src/Bipoint.cpp

@@ -158,9 +158,9 @@ void CurveBipoint::make_affine()
 
 void TwistBipoint::make_affine()
 {
-	if (!(fp2e_isone(point[0]->m_z) || ))
+	if (!(fp2e_isone(point[0]->m_z) || fp2e_iszero(point[0]->m_z)))
 		twistpoint_fp2_makeaffine(point[0]);
-	if (!(fp2e_isone(point[1]->m_z)))
+	if (!(fp2e_isone(point[1]->m_z) || fp2e_iszero(point[0]->m_z)))
 		twistpoint_fp2_makeaffine(point[1]);
 }