From 2116dbc83aa3cb94a2e99ec649c95f39add5e1db Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 11 Apr 2019 20:00:40 -1100 Subject: [PATCH] Fix syntax --- src/cryptoconditions/src/threshold.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cryptoconditions/src/threshold.c b/src/cryptoconditions/src/threshold.c index ec0570850..9547f4f8c 100644 --- a/src/cryptoconditions/src/threshold.c +++ b/src/cryptoconditions/src/threshold.c @@ -39,11 +39,12 @@ static int cmpCostDesc(const void *a, const void *b) { int retval; retval = (int) ( *(unsigned long*)b - *(unsigned long*)a ); - //if ( retval != 0 ) + return(retval); + /*if ( retval != 0 ) return(retval); else if ( (uint64_t)a < (uint64_t)b ) // jl777 prevent nondeterminism return(-1); - else return(1); + else return(1);*/ }