From c2a84f98b9a813dfb1b4661475c07031a947bc38 Mon Sep 17 00:00:00 2001 From: John Tromp Date: Sat, 15 Oct 2016 22:08:56 -0400 Subject: [PATCH] avoid extra struct member --- equi_miner.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/equi_miner.h b/equi_miner.h index 6a92eb6..471f621 100644 --- a/equi_miner.h +++ b/equi_miner.h @@ -132,7 +132,6 @@ struct htalloc { #ifdef JOINHT htunit *trees[WK]; #else - digit *heap; bucket *trees[WK]; htunit *hashes[WK]; #endif @@ -158,7 +157,7 @@ struct htalloc { // 8 0 2 4 6 8 . I H H 7 5 3 1 assert(DIGITBITS >= 16); // ensures hashes shorten by 1 unit every 2 digits u32 units0 = htunits(hashsize(0)), units1 = htunits(hashsize(1)); - heap = (digit *)alloc(1+units0+units1+1, sizeof(digit)); + digit *heap = (digit *)alloc(1+units0+units1+1, sizeof(digit)); for (int r=0; r