remove warning of vc

dev
MITSUNARI Shigeo 7 years ago
parent fb0362a999
commit 9e0f60181c
  1. 2
      include/mcl/ecdsa.hpp

@ -67,7 +67,7 @@ inline void FpToZn(Zn& y, const Fp& x)
inline void setHashOf(Zn& x, const void *msg, size_t msgSize)
{
mcl::fp::Unit xBuf[256 / 8 / sizeof(mcl::fp::Unit)];
uint32_t hashSize = mcl::fp::sha256(xBuf, sizeof(xBuf), msg, msgSize);
uint32_t hashSize = mcl::fp::sha256(xBuf, sizeof(xBuf), msg, (uint32_t)msgSize);
assert(hashSize == sizeof(xBuf));
(void)hashSize;
be32toZn(x, xBuf);

Loading…
Cancel
Save