diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-12-09 21:17:46 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-12-09 21:17:46 +0000 |
commit | e0f0366f920a4681be3ceb60bb86ecc82d14ce54 (patch) | |
tree | 168a4d8e7f00fa1e5077a267924587f220102996 /src/scalarproduct/gnunet-scalarproduct.c | |
parent | 3420db8ee66c510eb3680ba92a00d810b352b03d (diff) | |
download | gnunet-e0f0366f920a4681be3ceb60bb86ecc82d14ce54.tar.gz gnunet-e0f0366f920a4681be3ceb60bb86ecc82d14ce54.zip |
-handle negative results correctly
Diffstat (limited to 'src/scalarproduct/gnunet-scalarproduct.c')
-rw-r--r-- | src/scalarproduct/gnunet-scalarproduct.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/scalarproduct/gnunet-scalarproduct.c b/src/scalarproduct/gnunet-scalarproduct.c index 6f8d03bf3..b3b954211 100644 --- a/src/scalarproduct/gnunet-scalarproduct.c +++ b/src/scalarproduct/gnunet-scalarproduct.c | |||
@@ -138,8 +138,7 @@ requester_callback (void *cls, | |||
138 | { | 138 | { |
139 | ret = 0; | 139 | ret = 0; |
140 | fprintf (stdout, | 140 | fprintf (stdout, |
141 | "%s%s\n", | 141 | "%s\n", |
142 | (0 > gcry_mpi_cmp_ui (result, 0)) ? "-" : "", | ||
143 | buf); | 142 | buf); |
144 | fflush (stdout); | 143 | fflush (stdout); |
145 | } | 144 | } |