From: gtsoul-tech Date: Fri, 10 May 2024 09:43:45 +0000 (+0300) Subject: supervector X-Git-Tag: vectorscan/5.4.12^2~44^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c70c09c961969b8157d6b8058de39e74d52da27a;p=thirdparty%2Fvectorscan.git supervector --- diff --git a/src/util/supervector/supervector.hpp b/src/util/supervector/supervector.hpp index 5e2de235..8414fa60 100644 --- a/src/util/supervector/supervector.hpp +++ b/src/util/supervector/supervector.hpp @@ -208,18 +208,18 @@ public: SuperVector(typename base_type::type const v); template - SuperVector(T const other); + explicit SuperVector(T const other); SuperVector(SuperVector const lo, SuperVector const hi); SuperVector(previous_type const lo, previous_type const hi); - static SuperVector dup_u8 (uint8_t other) { return {other}; }; + static SuperVector dup_u8 (uint8_t other) { return {SuperVector(other)}; }; static SuperVector dup_s8 (int8_t other) { return {other}; }; static SuperVector dup_u16(uint16_t other) { return {other}; }; static SuperVector dup_s16(int16_t other) { return {other}; }; static SuperVector dup_u32(uint32_t other) { return {other}; }; static SuperVector dup_s32(int32_t other) { return {other}; }; - static SuperVector dup_u64(uint64_t other) { return {other}; }; + static SuperVector dup_u64(uint64_t other) { return {SuperVector(other)}; }; static SuperVector dup_s64(int64_t other) { return {other}; }; void operator=(SuperVector const &other);