From 3649f41219b8a0034eb3516677957ed3425590b5 Mon Sep 17 00:00:00 2001 From: Raoul Wols Date: Thu, 1 Jul 2021 13:48:10 +0200 Subject: [PATCH] Fix: cannot call size() on a moved-from Field Solution is to swap the statements. This was regressed in 7532f5769de145b1744c4f737a3d6964a6c94509. --- src/table.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/table.cpp b/src/table.cpp index c270f3c..1e7f3e2 100644 --- a/src/table.cpp +++ b/src/table.cpp @@ -27,11 +27,11 @@ Table::Table(InBuffer &frame) auto field = Field::decode(frame); if (!field) continue; - // add field - _fields[name] = std::move(field); - // subtract size bytesToRead -= (uint32_t)field->size(); + + // add field + _fields[name] = std::move(field); } }