summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmir Taaki <genjix@riseup.net>2014-05-08 20:25:52 (GMT)
committer Amir Taaki <genjix@riseup.net>2014-05-08 20:25:52 (GMT)
commit023146cc4213c234479611d043e97812b25445b2 (patch)
treeeca831da31a944bb71c4547afa2206fcc7905001
parentd7cc8d408379e70fc01e57f4f5d53eda410a181f (diff)
converted for recent libbitcoin changes.
-rw-r--r--src/ec-multiply.cpp2
-rw-r--r--src/ec-tweak-add.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ec-multiply.cpp b/src/ec-multiply.cpp
index 8827b95..b0b777e 100644
--- a/src/ec-multiply.cpp
+++ b/src/ec-multiply.cpp
@@ -11,7 +11,7 @@ int main(int argc, char** argv)
ec_point point_part;
if (!ec_math_parse_args(argc, argv, int_part, point_part))
return -1;
- bool success = (point_part *= int_part);
+ bool success = ec_multiply(point_part, int_part);
if (!success)
{
std::cerr << "sx: Out of range." << std::endl;
diff --git a/src/ec-tweak-add.cpp b/src/ec-tweak-add.cpp
index bb22785..1fd36a8 100644
--- a/src/ec-tweak-add.cpp
+++ b/src/ec-tweak-add.cpp
@@ -11,7 +11,7 @@ int main(int argc, char** argv)
ec_point point_part;
if (!ec_math_parse_args(argc, argv, int_part, point_part))
return -1;
- bool success = (point_part += int_part);
+ bool success = ec_tweak_add(point_part, int_part);
if (!success)
{
std::cerr << "sx: Out of range." << std::endl;