disable warning for Block b

dev
MITSUNARI Shigeo 8 years ago
parent 1e414e8ee1
commit 74e1b0fda4
  1. 7
      include/mcl/fp.hpp

@ -260,6 +260,10 @@ public:
{ {
setMsg(msg.data(), msg.size()); setMsg(msg.data(), msg.size());
} }
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable:4701)
#endif
void getStr(std::string& str, int ioMode = 0) const void getStr(std::string& str, int ioMode = 0) const
{ {
fp::Block b; fp::Block b;
@ -277,6 +281,9 @@ public:
// use low 8-bit ioMode for Fp // use low 8-bit ioMode for Fp
fp::arrayToStr(str, b.p, b.n, ioMode & 255); fp::arrayToStr(str, b.p, b.n, ioMode & 255);
} }
#ifdef _MSC_VER
#pragma warning(pop)
#endif
std::string getStr(int ioMode = 0) const std::string getStr(int ioMode = 0) const
{ {
std::string str; std::string str;

Loading…
Cancel
Save