summaryrefslogtreecommitdiffstats
path: root/searchsummary
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2022-09-08 19:13:36 +0200
committerTor Egge <Tor.Egge@online.no>2022-09-08 19:13:36 +0200
commit6c04ba8301b9b7080fe76d88ef053f3b4896485e (patch)
treef6dc31763cdf54a203e79f0f8c13d10681793342 /searchsummary
parent683ca156011fbf732448db32ed66e06b487ef741 (diff)
Use int64_t and double when printing values for single value numeric attributes.
Diffstat (limited to 'searchsummary')
-rw-r--r--searchsummary/src/vespa/searchsummary/docsummary/attributedfw.cpp4
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;
}