diff --git a/include/mcl/fp_tower.hpp b/include/mcl/fp_tower.hpp index efe8b26..63738a3 100644 --- a/include/mcl/fp_tower.hpp +++ b/include/mcl/fp_tower.hpp @@ -43,7 +43,7 @@ public: *pb = false; return; } - cybozu::write(os, buf + sizeof(buf) - n, sizeof(buf), pb); + cybozu::write(pb, os, buf + sizeof(buf) - n, sizeof(buf)); } template void load(bool *pb, InputStream& is, int)