From 22ce4440b7cacbc1898329628be3a6e523c045e4 Mon Sep 17 00:00:00 2001 From: Ralph Lange Date: Tue, 28 Jan 2020 15:44:27 +0100 Subject: [PATCH] Fix bug preventing "whole structure" bitset(0) copy (fixes #52) (this should have a test added, but I am not familiar enough with the code) --- src/copy/pvCopy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/copy/pvCopy.cpp b/src/copy/pvCopy.cpp index bda7463..09fe4f3 100644 --- a/src/copy/pvCopy.cpp +++ b/src/copy/pvCopy.cpp @@ -244,7 +244,7 @@ void PVCopy::updateMasterCheckBitSet( bitSet->clear(nextSet); PVStructurePtr pv = static_pointer_cast(pvField); PVFieldPtrArray pvFieldArray = pv->getPVFields(); - for(size_t i=0; i>pvFieldArray.size(); ++i) { + for(size_t i=0; iset(pvField->getFieldOffset()); }