From 9663411d0a118a51bbc0e13d0538e4d7cf178c59 Mon Sep 17 00:00:00 2001 From: AlexGuo1998 Date: Mon, 14 Nov 2022 18:20:24 +0800 Subject: [PATCH] fix crashing when writing C tables with -b 512 --- src/plotdisk/k32/CTableWriterBounded.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plotdisk/k32/CTableWriterBounded.h b/src/plotdisk/k32/CTableWriterBounded.h index 4818194f..07b02a95 100644 --- a/src/plotdisk/k32/CTableWriterBounded.h +++ b/src/plotdisk/k32/CTableWriterBounded.h @@ -352,7 +352,7 @@ class CTableWriterBounded MapWriter<_numBuckets, false> _mapWriter; uint64 _mapOffset = 0; - uint64 _mapBitCounts[BB_DP_MAX_JOBS] = {}; + uint64 _mapBitCounts[_numBuckets] = {}; Duration _tableIOWait = Duration::zero(); uint32 _threadCount = 0;