From 9b34a962f08b5a89ccade6dd1c865ef79077f7dd Mon Sep 17 00:00:00 2001 From: Vitaly Stoyan Date: Tue, 29 Oct 2024 12:48:02 +0300 Subject: [PATCH] faster --- ydb/library/yql/public/decimal/yql_decimal.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ydb/library/yql/public/decimal/yql_decimal.cpp b/ydb/library/yql/public/decimal/yql_decimal.cpp index d5537bafc235..ea444a06b260 100644 --- a/ydb/library/yql/public/decimal/yql_decimal.cpp +++ b/ydb/library/yql/public/decimal/yql_decimal.cpp @@ -249,10 +249,12 @@ TInt128 FromStringEx(const TStringBuf& str, ui8 precision, ui8 scale) { if (!std::isdigit(*p)) return Err(); + + return r; } if (const auto e = exp > 0 ? std::max(0, s - p) : std::min(0, s)) { - if (r && IsNormal(r)) { + if (r) { if (exp > 0) return Mul(r, GetDivider(+e)); if (exp < 0)