mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-07 03:06:18 +08:00
Fix cbor encoding for uint64_t's (#442)
Signed-off-by: David Corbeil <8996584+dcorbeil@users.noreply.github.com> Signed-off-by: Ian Flury <ianflury123@gmail.com> Co-authored-by: David Corbeil <8996584+dcorbeil@users.noreply.github.com>
This commit is contained in:
co-authored by
David Corbeil
parent
750e67d630
commit
dd257a84db
@@ -103,6 +103,8 @@ class Writer {
|
||||
encoder_->bool_value(_var);
|
||||
} else if constexpr (std::is_floating_point<std::remove_cvref_t<T>>()) {
|
||||
encoder_->double_value(static_cast<double>(_var));
|
||||
} else if constexpr (std::is_unsigned<std::remove_cvref_t<T>>()) {
|
||||
encoder_->uint64_value(static_cast<std::uint64_t>(_var));
|
||||
} else if constexpr (std::is_integral<std::remove_cvref_t<T>>()) {
|
||||
encoder_->int64_value(static_cast<std::int64_t>(_var));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user