소스 검색

bug by me: forgot to make points affine before hashing them

tristangurtler 5 년 전
부모
커밋
9a461bc266
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      bgn2/src/Bipoint.cpp

+ 2 - 0
bgn2/src/Bipoint.cpp

@@ -273,6 +273,8 @@ size_t TwistBipointHash::operator()(const TwistBipoint& x) const
 		retval[1] = 0;
 		infinity[1] = false;
 	}
+
+	affine_x.make_affine();
 	
 	for (int i = 0; i < 2; i++)
 	{