summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-03-07 15:00:46 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2022-03-07 15:00:46 +0000
commit277edccb6a50928b8d39ba36e12aecfd6aa45d07 (patch)
tree65352f9365b8f353b4cccb334197e0a366485da6 /document
parent4d47dde39b5d741561dc11832427a2c73eeb941e (diff)
Use corrcet type for short.
Diffstat (limited to 'document')
-rw-r--r--document/src/vespa/document/fieldvalue/shortfieldvalue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/document/src/vespa/document/fieldvalue/shortfieldvalue.h b/document/src/vespa/document/fieldvalue/shortfieldvalue.h
index dff7644159e..fa61c37c4eb 100644
--- a/document/src/vespa/document/fieldvalue/shortfieldvalue.h
+++ b/document/src/vespa/document/fieldvalue/shortfieldvalue.h
@@ -28,7 +28,7 @@ public:
using NumericFieldValue<Number>::operator=;
DECLARE_IDENTIFIABLE(ShortFieldValue);
- static std::unique_ptr<ShortFieldValue> make(int32_t value = 0) { return std::make_unique<ShortFieldValue>(value); }
+ static std::unique_ptr<ShortFieldValue> make(int16_t value = 0) { return std::make_unique<ShortFieldValue>(value); }
};
} // document