aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2024-04-25 21:39:49 +0200
committerTor Egge <Tor.Egge@online.no>2024-04-25 21:39:49 +0200
commitddbfe892a1c9396289c993b552ab2c0bfcbec4bb (patch)
tree014d818f431b314809052f1e2c0cfdf18e438692
parent16ac700c95696e3c22c123816428ac877a86f233 (diff)
Initialize all TypedCells members.
-rw-r--r--eval/src/vespa/eval/eval/typed_cells.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/eval/src/vespa/eval/eval/typed_cells.h b/eval/src/vespa/eval/eval/typed_cells.h
index 7aa7debff30..fa3b0ca150d 100644
--- a/eval/src/vespa/eval/eval/typed_cells.h
+++ b/eval/src/vespa/eval/eval/typed_cells.h
@@ -15,13 +15,13 @@ struct TypedCells {
bool _non_existing_attribute_value:1;
CellType type;
- explicit TypedCells(ConstArrayRef<double> cells) noexcept : data(cells.begin()), size(cells.size()), type(CellType::DOUBLE) {}
- explicit TypedCells(ConstArrayRef<float> cells) noexcept : data(cells.begin()), size(cells.size()), type(CellType::FLOAT) {}
- explicit TypedCells(ConstArrayRef<BFloat16> cells) noexcept : data(cells.begin()), size(cells.size()), type(CellType::BFLOAT16) {}
- explicit TypedCells(ConstArrayRef<Int8Float> cells) noexcept : data(cells.begin()), size(cells.size()), type(CellType::INT8) {}
+ explicit TypedCells(ConstArrayRef<double> cells) noexcept : data(cells.begin()), size(cells.size()), _non_existing_attribute_value(false), type(CellType::DOUBLE) {}
+ explicit TypedCells(ConstArrayRef<float> cells) noexcept : data(cells.begin()), size(cells.size()), _non_existing_attribute_value(false), type(CellType::FLOAT) {}
+ explicit TypedCells(ConstArrayRef<BFloat16> cells) noexcept : data(cells.begin()), size(cells.size()), _non_existing_attribute_value(false), type(CellType::BFLOAT16) {}
+ explicit TypedCells(ConstArrayRef<Int8Float> cells) noexcept : data(cells.begin()), size(cells.size()), _non_existing_attribute_value(false), type(CellType::INT8) {}
- TypedCells() noexcept : data(nullptr), size(0), type(CellType::DOUBLE) {}
- TypedCells(const void *dp, CellType ct, size_t sz) noexcept : data(dp), size(sz), type(ct) {}
+ TypedCells() noexcept : data(nullptr), size(0), _non_existing_attribute_value(false), type(CellType::DOUBLE) {}
+ TypedCells(const void *dp, CellType ct, size_t sz) noexcept : data(dp), size(sz), _non_existing_attribute_value(false), type(ct) {}
static TypedCells create_non_existing_attribute_value(const void *dp, CellType ct, size_t sz) {
TypedCells cells(dp, ct, sz);