aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2018-10-18 17:03:47 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2018-10-18 17:03:47 +0800
commitcdebe9de138a2f24f64dd759635cd29020b0d7cc (patch)
tree92a691a8903677d98f3b7f6a0ef4064a4e6a7161
parentf3776baa350dc4d5d534736197231f16a8b9697f (diff)
downloadtangerine-mcl-cdebe9de138a2f24f64dd759635cd29020b0d7cc.tar.gz
tangerine-mcl-cdebe9de138a2f24f64dd759635cd29020b0d7cc.tar.zst
tangerine-mcl-cdebe9de138a2f24f64dd759635cd29020b0d7cc.zip
fix order of arguments for cybozu::write
-rw-r--r--include/mcl/fp_tower.hpp2
1 files changed, 1 insertions, 1 deletions
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<class InputStream>
void load(bool *pb, InputStream& is, int)