aboutsummaryrefslogtreecommitdiff
path: root/src/scalarproduct/gnunet-scalarproduct.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-12-09 21:17:46 +0000
committerChristian Grothoff <christian@grothoff.org>2014-12-09 21:17:46 +0000
commite0f0366f920a4681be3ceb60bb86ecc82d14ce54 (patch)
tree168a4d8e7f00fa1e5077a267924587f220102996 /src/scalarproduct/gnunet-scalarproduct.c
parent3420db8ee66c510eb3680ba92a00d810b352b03d (diff)
downloadgnunet-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.c3
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 }