From 6c04ba8301b9b7080fe76d88ef053f3b4896485e Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Thu, 8 Sep 2022 19:13:36 +0200 Subject: Use int64_t and double when printing values for single value numeric attributes. --- searchsummary/src/vespa/searchsummary/docsummary/attributedfw.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'searchsummary') diff --git a/searchsummary/src/vespa/searchsummary/docsummary/attributedfw.cpp b/searchsummary/src/vespa/searchsummary/docsummary/attributedfw.cpp index 2999ef05b37..6d59ac4fa3b 100644 --- a/searchsummary/src/vespa/searchsummary/docsummary/attributedfw.cpp +++ b/searchsummary/src/vespa/searchsummary/docsummary/attributedfw.cpp @@ -70,7 +70,7 @@ SingleAttrDFW::insertField(uint32_t docid, GetDocsumsState * state, ResType, Ins case BasicType::Type::INT16: case BasicType::Type::INT32: case BasicType::Type::INT64: { - uint32_t val = v.getInt(docid); + int64_t val = v.getInt(docid); target.insertLong(val); break; } @@ -81,7 +81,7 @@ SingleAttrDFW::insertField(uint32_t docid, GetDocsumsState * state, ResType, Ins } case BasicType::Type::FLOAT: case BasicType::Type::DOUBLE: { - float val = v.getFloat(docid); + double val = v.getFloat(docid); target.insertDouble(val); break; } -- cgit v1.2.3