diff options
author | Mikhail Borisov <borisov.mikhail@gmail.com> | 2022-02-10 16:45:40 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:40 +0300 |
commit | 5d50718e66d9c037dc587a0211110b7d25a66185 (patch) | |
tree | e98df59de24d2ef7c77baed9f41e4875a2fef972 /library/cpp/yson_pull/detail/number.h | |
parent | a6a92afe03e02795227d2641b49819b687f088f8 (diff) | |
download | ydb-5d50718e66d9c037dc587a0211110b7d25a66185.tar.gz |
Restoring authorship annotation for Mikhail Borisov <borisov.mikhail@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/yson_pull/detail/number.h')
-rw-r--r-- | library/cpp/yson_pull/detail/number.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/yson_pull/detail/number.h b/library/cpp/yson_pull/detail/number.h index 0dc442e3d2..5595f55e05 100644 --- a/library/cpp/yson_pull/detail/number.h +++ b/library/cpp/yson_pull/detail/number.h @@ -1,7 +1,7 @@ -#pragma once - +#pragma once + #include <util/system/types.h> - + namespace NYsonPull { namespace NDetail { enum class number_type { @@ -9,7 +9,7 @@ namespace NYsonPull { uint64, int64 }; - + struct number { number_type type; union { @@ -17,21 +17,21 @@ namespace NYsonPull { ui64 as_uint64; i64 as_int64; } value; - + number(double v) { type = number_type::float64; value.as_float64 = v; } - + number(i64 v) { type = number_type::int64; value.as_int64 = v; } - + number(ui64 v) { type = number_type::uint64; value.as_uint64 = v; } }; - } + } } |