From 63d5a2021de40f6cfb8ce8e887545b6c102e3d83 Mon Sep 17 00:00:00 2001 From: Rainer Schuetze Date: Wed, 1 Nov 2017 19:28:20 +0100 Subject: [PATCH] fix build --- src/gc/impl/conservative/gc.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gc/impl/conservative/gc.d b/src/gc/impl/conservative/gc.d index f1f5499a8c..585a1c5d12 100644 --- a/src/gc/impl/conservative/gc.d +++ b/src/gc/impl/conservative/gc.d @@ -2318,8 +2318,9 @@ struct Gcx // normalize pointers so we only have to save a single pointer auto nbase = isPtrBase ? cast(void**)(cast(size_t)p1 & p1BaseMask) : null; isPtrBase += (nbase - p1base) / GCBits.BITS_PER_WORD; - toscan.push(ScanRange!precise(p1, p2, isPtrBase)); } + static if(precise) + toscan.push(ScanRange!precise(p1, p2, isPtrBase)); else toscan.push(ScanRange!precise(p1, p2)); // reverse order for depth-first-order traversal