This is an automated email from the ASF dual-hosted git repository.
kmccusker pushed a commit to branch develop
in repository
https://gitbox.apache.org/repos/asf/incubator-milagro-crypto-rust.git
The following commit(s) were added to refs/heads/develop by this push:
new a8d0330 Fix issue displaying FP values
new dbd1bd1 Merge pull request #11 from sigp/fp-display
a8d0330 is described below
commit a8d03306201b9654658201d8eefb4dcd99c0b2d7
Author: Kirk Baird <[email protected]>
AuthorDate: Thu Jan 23 10:15:36 2020 +1100
Fix issue displaying FP values
Signed-off-by: Kirk Baird <[email protected]>
---
src/fp.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/fp.rs b/src/fp.rs
index 72b7390..54eff31 100644
--- a/src/fp.rs
+++ b/src/fp.rs
@@ -40,13 +40,13 @@ impl PartialEq for FP {
impl fmt::Display for FP {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- write!(f, "FP: [ {} ]", self.x)
+ write!(f, "FP: [ {} ]", self.tostring())
}
}
impl fmt::Debug for FP {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- write!(f, "FP: [ {} ]", self.x)
+ write!(f, "FP: [ {} ]", self.tostring())
}
}