aboutsummaryrefslogtreecommitdiffstats
path: root/util/datetime/parser.rl6
diff options
context:
space:
mode:
authorpkalinnikov <pkalinnikov@yandex-team.ru>2022-02-10 16:50:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:15 +0300
commitd507a9366b2ab84411afe63fea9fba5498891e1b (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/datetime/parser.rl6
parent9e33e026829d561d6fd46d72b88c367952e08075 (diff)
downloadydb-d507a9366b2ab84411afe63fea9fba5498891e1b.tar.gz
Restoring authorship annotation for <pkalinnikov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/datetime/parser.rl6')
-rw-r--r--util/datetime/parser.rl64
1 files changed, 2 insertions, 2 deletions
diff --git a/util/datetime/parser.rl6 b/util/datetime/parser.rl6
index 1f5e430c5c..931f09eae1 100644
--- a/util/datetime/parser.rl6
+++ b/util/datetime/parser.rl6
@@ -773,8 +773,8 @@ bool TDurationParser::ParsePart(const char* input, size_t len) {
return cs != %%{ write error; }%%;
}
-static inline ui64 DecPower(ui64 part, i32 power) {
- if (power >= 0)
+static inline ui64 DecPower(ui64 part, i32 power) {
+ if (power >= 0)
return part * Power(10, power);
return part / Power(10, -power);
}