aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2016-09-01 13:15:31 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2016-09-01 13:15:31 +0800
commit36a462d1d2c0923754bbaa7ad2ad068d18064a36 (patch)
treebece1fab94c07e49b1a7aad61fb8ac936143bd74
parente7281531ebd41c3dba106e147475c81fede6ddd6 (diff)
downloadtangerine-mcl-36a462d1d2c0923754bbaa7ad2ad068d18064a36.tar.gz
tangerine-mcl-36a462d1d2c0923754bbaa7ad2ad068d18064a36.tar.zst
tangerine-mcl-36a462d1d2c0923754bbaa7ad2ad068d18064a36.zip
fix spell
-rw-r--r--include/mcl/op.hpp6
-rw-r--r--test/ec_test.cpp6
-rw-r--r--test/mont_fp_test.cpp6
3 files changed, 9 insertions, 9 deletions
diff --git a/include/mcl/op.hpp b/include/mcl/op.hpp
index 3dcc8d4..0098463 100644
--- a/include/mcl/op.hpp
+++ b/include/mcl/op.hpp
@@ -19,9 +19,9 @@ namespace mcl {
enum IoMode {
IoAuto = 0, // dec or hex according to ios_base::fmtflags
- IoBinary = 2, // binary number without prefix
- IoDecimal = 10, // decimal number without prefix
- IoHeximal = 16, // heximal number without prefix
+ IoBin = 2, // binary number without prefix
+ IoDec = 10, // decimal number without prefix
+ IoHex = 16, // hexadecimal number without prefix
IoArray = -1, // array of Unit
IoArrayRaw = -2, // raw array of Unit without Montgomery conversion
};
diff --git a/test/ec_test.cpp b/test/ec_test.cpp
index e84ef0f..e651f0e 100644
--- a/test/ec_test.cpp
+++ b/test/ec_test.cpp
@@ -279,9 +279,9 @@ struct Test {
const Fp y(para.gy);
Ec P(x, y);
const mcl::IoMode tbl[] = {
- mcl::IoBinary,
- mcl::IoDecimal,
- mcl::IoHeximal,
+ mcl::IoBin,
+ mcl::IoDec,
+ mcl::IoHex,
mcl::IoArray,
mcl::IoArrayRaw,
};
diff --git a/test/mont_fp_test.cpp b/test/mont_fp_test.cpp
index 0f7115a..db9a02a 100644
--- a/test/mont_fp_test.cpp
+++ b/test/mont_fp_test.cpp
@@ -295,9 +295,9 @@ struct Test {
mcl::IoMode ioMode;
std::string expected;
} tbl[] = {
- { mcl::IoBinary, "1111011" },
- { mcl::IoDecimal, "123" },
- { mcl::IoHeximal, "7b" },
+ { mcl::IoBin, "1111011" },
+ { mcl::IoDec, "123" },
+ { mcl::IoHex, "7b" },
};
for (size_t i = 0; i < CYBOZU_NUM_OF_ARRAY(tbl); i++) {
mcl::setIoMode(tbl[i].ioMode);