diff options
author | dan sinclair <dj2@everburning.com> | 2019-04-10 14:24:19 -0400 |
---|---|---|
committer | David Neto <dneto@google.com> | 2019-04-10 14:24:19 -0400 |
commit | 847634a9bd8bcb4790b8ec5afa10e4af9b009c6d (patch) | |
tree | 7fb70358d0ee693e3f553a06368d91e3b1f2185b /src/buffer.cc | |
parent | e968f5c9f485ffc8b709f79177bd7e64516f2b8f (diff) | |
download | amber-847634a9bd8bcb4790b8ec5afa10e4af9b009c6d.tar.gz |
Use Format instead of DatumType where possible. (#460)
This CL replaces uses of DatumType with the equivalent information in
the Format object.
Diffstat (limited to 'src/buffer.cc')
-rw-r--r-- | src/buffer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.cc b/src/buffer.cc index d1c39fb..c7e9a08 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -267,8 +267,8 @@ DataBuffer::DataBuffer(BufferType type) : Buffer(type) {} DataBuffer::~DataBuffer() = default; Result DataBuffer::SetData(std::vector<Value>&& data) { - uint32_t size = static_cast<uint32_t>(data.size()) / - datum_type_.ColumnCount() / datum_type_.RowCount(); + uint32_t size = static_cast<uint32_t>(data.size()) / format_->ColumnCount() / + format_->RowCount(); SetSize(size); values_.resize(GetSizeInBytes()); return CopyData(data); |