diff --git a/ydb/core/sys_view/service/ext_counters.cpp b/ydb/core/sys_view/service/ext_counters.cpp index 666e66b23337..fec1047f6997 100644 --- a/ydb/core/sys_view/service/ext_counters.cpp +++ b/ydb/core/sys_view/service/ext_counters.cpp @@ -177,7 +177,7 @@ class TExtCountersUpdaterActor ExecuteLatencyMsPrevValues[n] = value; if (ExecuteLatencyMsBounds[n] == 0) { NMonitoring::TBucketBound bound = snapshot->UpperBound(n); - ExecuteLatencyMsBounds[n] = bound == Max() ? Max() : bound; + ExecuteLatencyMsBounds[n] = bound == Max() ? Max() : ui64(bound); } } metrics->AddMetric("queries.requests", total); diff --git a/ydb/core/tablet_flat/ut/ut_stat.cpp b/ydb/core/tablet_flat/ut/ut_stat.cpp index ec265efe8daa..0111f48f6d68 100644 --- a/ydb/core/tablet_flat/ut/ut_stat.cpp +++ b/ydb/core/tablet_flat/ut/ut_stat.cpp @@ -746,7 +746,7 @@ Y_UNIT_TEST_SUITE(BuildStatsHistogram) { ui32 operator()(const TRow&) noexcept { - auto x = Random.Uniform(1 << Buckets); + auto x = Random.Uniform(1, 1 << Buckets); return Min(ui32(log2(x)), Buckets - 1); }