From 37efdeca2eea463bba1041b908cb789fa032f899 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 11 Apr 2019 19:56:40 -1100 Subject: [PATCH 1/2] Syntax --- src/pow/tromp/equi.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pow/tromp/equi.h b/src/pow/tromp/equi.h index 0584cd6cc..b474194fc 100644 --- a/src/pow/tromp/equi.h +++ b/src/pow/tromp/equi.h @@ -78,11 +78,12 @@ int compu32(const void *pa, const void *pb) { int32_t retval; u32 a = *(u32 *)pa, b = *(u32 *)pb; retval = a Date: Thu, 11 Apr 2019 20:00:40 -1100 Subject: [PATCH 2/2] 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);*/ }