diff options
author | paxakor <paxakor@yandex-team.ru> | 2022-02-10 16:47:32 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:32 +0300 |
commit | 40d35c046ee3a61ee2a581f42499c5ce56ac589a (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /util/string/hex.h | |
parent | 7fdbed62e54b804e2c12b86a2c2bab12f61065df (diff) | |
download | ydb-40d35c046ee3a61ee2a581f42499c5ce56ac589a.tar.gz |
Restoring authorship annotation for <paxakor@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/string/hex.h')
-rw-r--r-- | util/string/hex.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/string/hex.h b/util/string/hex.h index 917aa63851..af3d2d528f 100644 --- a/util/string/hex.h +++ b/util/string/hex.h @@ -21,8 +21,8 @@ inline static int Char2Digit(char ch) { } //! Convert a hex string of exactly 2 chars to int -/*! @example String2Byte("10") => 16 */ -inline static int String2Byte(const char* s) { +/*! @example String2Byte("10") => 16 */ +inline static int String2Byte(const char* s) { return Char2Digit(*s) * 16 + Char2Digit(*(s + 1)); } |