diff options
author | Tor Egge <Tor.Egge@online.no> | 2022-09-08 19:13:36 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2022-09-08 19:13:36 +0200 |
commit | 6c04ba8301b9b7080fe76d88ef053f3b4896485e (patch) | |
tree | f6dc31763cdf54a203e79f0f8c13d10681793342 | |
parent | 683ca156011fbf732448db32ed66e06b487ef741 (diff) |
Use int64_t and double when printing values for single value numeric attributes.
-rw-r--r-- | searchsummary/src/vespa/searchsummary/docsummary/attributedfw.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |