瀏覽代碼

fixing make_affine()

tristangurtler 3 年之前
父節點
當前提交
cfed4e2da5
共有 1 個文件被更改,包括 2 次插入2 次删除
  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]);
 }