Skip to content

Commit 3217b2b

Browse files
committed
Name union to prevent compiler warning
backports bitcoin/bitcoin@1812de9
1 parent 1824def commit 3217b2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prevector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class prevector {
146146

147147
private:
148148
size_type _size;
149-
union {
149+
union direct_or_indirect {
150150
char direct[sizeof(T) * N];
151151
struct {
152152
size_type capacity;

0 commit comments

Comments
 (0)