[PATCH 5/8] set2: Return this from assignment operator
Tom Stellard
tstellar@redhat.com
Mon Nov 30 19:58:38 GMT 2020
From: Timm Bäder <tbaeder@redhat.com>
This should return something but didn't.
---
bpf-bitset.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/bpf-bitset.h b/bpf-bitset.h
index 6c2f74f0f..4b9402a51 100644
--- a/bpf-bitset.h
+++ b/bpf-bitset.h
@@ -240,6 +240,7 @@ public:
if (n1 != o.n1 || w2 != o.w2)
throw_out_of_range("bpf::bitset::set2::operator=");
memcpy(data, o.data, n1 * w2 * sizeof(word_t));
+ return *this;
}
set1_ref operator[] (size_t i)
--
2.26.2
More information about the Systemtap
mailing list