Fix capnproto version check for capnp::UnalignedFlatArrayMessageReader

capnp::UnalignedFlatArrayMessageReader was introduced in
3aa2b2aa02
(which is a part of 0.7.0 release). Unfortunately,
capnp::UnalignedFlatArrayMessageReader was removed in
3f0fee61c6
(which is a part of 0.8.0 release)

So change CAPNP_VERSION check accordingly.
This commit is contained in:
Matwey V. Kornilov 2020-05-01 22:32:06 +03:00
parent e9baaa439b
commit d7627fa4fb

View File

@ -240,7 +240,7 @@ bool CapnProtoRowInputFormat::readRow(MutableColumns & columns, RowReadExtension
auto array = readMessage(); auto array = readMessage();
#if CAPNP_VERSION >= 8000 #if CAPNP_VERSION >= 7000 && CAPNP_VERSION < 8000
capnp::UnalignedFlatArrayMessageReader msg(array); capnp::UnalignedFlatArrayMessageReader msg(array);
#else #else
capnp::FlatArrayMessageReader msg(array); capnp::FlatArrayMessageReader msg(array);