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)
-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 6f8d03bf35..b3b9542113 100644
--- a/src/scalarproduct/gnunet-scalarproduct.c
+++ b/src/scalarproduct/gnunet-scalarproduct.c
@@ -138,8 +138,7 @@ requester_callback (void *cls,
{
ret = 0;
fprintf (stdout,
- "%s%s\n",
- (0 > gcry_mpi_cmp_ui (result, 0)) ? "-" : "",
+ "%s\n",
buf);
fflush (stdout);
}