diff options
author | Arne Juul <arnej@verizonmedia.com> | 2020-11-24 21:21:24 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2020-11-24 21:21:24 +0000 |
commit | 3723c0bbba1296507dfe3ce4357e3c179ec3fdd1 (patch) | |
tree | eb9836c4f0df5f4a3577d8205ba0c215a69bf8fb /eval | |
parent | f69c7e87568576e4de11d771160b6d0564946042 (diff) |
minor fixups:
* no need for nbostream_longlivedbuf
* explicitly get largest possible size_t
Diffstat (limited to 'eval')
-rw-r--r-- | eval/src/vespa/eval/streamed/streamed_value_utils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eval/src/vespa/eval/streamed/streamed_value_utils.h b/eval/src/vespa/eval/streamed/streamed_value_utils.h index f314dc3f44e..32b5b7ca29b 100644 --- a/eval/src/vespa/eval/streamed/streamed_value_utils.h +++ b/eval/src/vespa/eval/streamed/streamed_value_utils.h @@ -13,7 +13,7 @@ namespace vespalib::eval { * throw an exception. **/ struct LabelStream { - nbostream_longlivedbuf source; + nbostream source; LabelStream(ConstArrayRef<char> data) : source(data.begin(), data.size()) {} vespalib::stringref next_label() { size_t str_size = source.getInt1_4Bytes(); @@ -66,7 +66,7 @@ public: uint32_t num_mapped_dims) : _num_subspaces(num_subspaces), _labels(label_buf), - _subspace_index(-1), + _subspace_index(std::numeric_limits<size_t>::max()), _current_address(num_mapped_dims) {} |