diff options
| author | MITSUNARI Shigeo <herumi@nifty.com> | 2016-02-11 05:36:16 +0800 | 
|---|---|---|
| committer | MITSUNARI Shigeo <herumi@nifty.com> | 2016-02-11 05:36:16 +0800 | 
| commit | 7ff869190da18217302c2ae1bc52fb883b54b113 (patch) | |
| tree | cfcd6a6f360980a628a0b4e9a303e496e5f72a71 /include/mcl/fp_tower.hpp | |
| parent | 43c38ac96469a5356ca7025fcffd93612fb836ee (diff) | |
| download | tangerine-mcl-7ff869190da18217302c2ae1bc52fb883b54b113.tar.gz tangerine-mcl-7ff869190da18217302c2ae1bc52fb883b54b113.tar.zst tangerine-mcl-7ff869190da18217302c2ae1bc52fb883b54b113.zip | |
use assert
Diffstat (limited to 'include/mcl/fp_tower.hpp')
| -rw-r--r-- | include/mcl/fp_tower.hpp | 4 | 
1 files changed, 1 insertions, 3 deletions
| diff --git a/include/mcl/fp_tower.hpp b/include/mcl/fp_tower.hpp index 9951eca..6fb7412 100644 --- a/include/mcl/fp_tower.hpp +++ b/include/mcl/fp_tower.hpp @@ -126,9 +126,7 @@ public:  	}  	static inline void init(int xi_c)  	{ -		if (Fp::maxSize > 256) { -			throw cybozu::Exception("Fp2T:init:not support size") << Fp::maxSize; -		} +		assert(Fp::maxSize <= 256);  		xi_c_ = xi_c;  		Fp::op_.fp2_add = fp2_addW;  		Fp::op_.fp2_sub = fp2_subW; | 
