From fd96fc58d29258438a75e070bd84c1b1ecf3ba16 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Thu, 3 Aug 2017 16:27:27 +0900 Subject: [PATCH] use FixedBuffer for vint --- include/mcl/vint.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/mcl/vint.hpp b/include/mcl/vint.hpp index ea7eae4..85a49e1 100644 --- a/include/mcl/vint.hpp +++ b/include/mcl/vint.hpp @@ -16,6 +16,8 @@ #ifdef __EMSCRIPTEN__ #define MCL_VINT_64BIT_PORTABLE + #define MCL_VINT_FIXED_BUFFER + #define MCL_MAX_BIT_SIZE 384 #endif #ifndef MCL_SIZEOF_UNIT @@ -863,7 +865,7 @@ public: void verify(size_t n) const { if (n > N) { - throw cybozu::Exception("verify:too large size") << n << N; + throw cybozu::Exception("verify:too large size") << n << (int)N; } } const T& operator[](size_t n) const { verify(n); return v_[n]; }