diff options
author | pilik <96681992+pashandor789@users.noreply.github.com> | 2024-03-13 15:25:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-13 15:25:38 +0300 |
commit | 2380e383a99584b10ed0ac5ac570fd26a6593a62 (patch) | |
tree | 4ee7446fb8a88323cd9ea4c80ee604aabaed46ef | |
parent | d0d041c79c3419ffac59c0e4861a743fd90622ff (diff) | |
download | ydb-2380e383a99584b10ed0ac5ac570fd26a6593a62.tar.gz |
[CLI] double print fix (#2656)
Co-authored-by: Pavel Ivanov <pudge1000-7@mr-nvme-testing-11.search.yandex.net>
-rw-r--r-- | ydb/public/lib/ydb_cli/common/format.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ydb/public/lib/ydb_cli/common/format.cpp b/ydb/public/lib/ydb_cli/common/format.cpp index e4e1cbd0b8..ec9fab8f23 100644 --- a/ydb/public/lib/ydb_cli/common/format.cpp +++ b/ydb/public/lib/ydb_cli/common/format.cpp @@ -423,7 +423,7 @@ TString formatPrettyTableDouble(double value) { std::strstream stream; if (1e-3 < value && value < 1e8 || value == 0) { - stream << std::round(value) << '\0'; + stream << static_cast<int64_t>(std::round(value)) << '\0'; return ToString(stream.str()); } |