summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasile Vilvoiu <vasi@vilvoiu.ro>2023-05-06 19:40:42 +0300
committerVasile Vilvoiu <vasi@vilvoiu.ro>2023-05-06 19:40:42 +0300
commit2ebb152342283a2237bc7ca2dd96baf3cac0d56e (patch)
tree0831582d12bb06d48f63843d6b966442e11b49fe
parent91cf2b3a2c1e85edc80d3a624b7239b727fe67e9 (diff)
Fix previously introduced regression.
-rw-r--r--src/input-parser.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/input-parser.cpp b/src/input-parser.cpp
index f9ad73b..a332404 100644
--- a/src/input-parser.cpp
+++ b/src/input-parser.cpp
@@ -49,13 +49,13 @@ InputParser::Build(DataType dtype, double prescale, bool is_complex)
} else if (dtype == DataType::kSignedInt64) {
return std::make_unique<IntegerInputParser<int64_t>>(prescale, is_complex);
} else if (dtype == DataType::kUnsignedInt8) {
- return std::make_unique<IntegerInputParser<int8_t>>(prescale, is_complex);
+ return std::make_unique<IntegerInputParser<uint8_t>>(prescale, is_complex);
} else if (dtype == DataType::kUnsignedInt16) {
- return std::make_unique<IntegerInputParser<int16_t>>(prescale, is_complex);
+ return std::make_unique<IntegerInputParser<uint16_t>>(prescale, is_complex);
} else if (dtype == DataType::kUnsignedInt32) {
- return std::make_unique<IntegerInputParser<int32_t>>(prescale, is_complex);
+ return std::make_unique<IntegerInputParser<uint32_t>>(prescale, is_complex);
} else if (dtype == DataType::kUnsignedInt64) {
- return std::make_unique<IntegerInputParser<int64_t>>(prescale, is_complex);
+ return std::make_unique<IntegerInputParser<uint64_t>>(prescale, is_complex);
} else if (dtype == DataType::kFloat32) {
return std::make_unique<FloatInputParser<float>>(prescale, is_complex);
} else if (dtype == DataType::kFloat64) {