From b57b01832e4c6a6804fc44c3a46b610b0649b6ba Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Wed, 26 Sep 2018 09:33:52 +0900 Subject: [PATCH] fix Vint::getStr to clear string --- include/mcl/vint.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/mcl/vint.hpp b/include/mcl/vint.hpp index 948c9c7..242e27b 100644 --- a/include/mcl/vint.hpp +++ b/include/mcl/vint.hpp @@ -1764,6 +1764,7 @@ public: } void getStr(std::string& s, int base = 10) const { + s.clear(); cybozu::StringOutputStream os(s); save(os, base); }