summaryrefslogtreecommitdiffstats
path: root/util/string/hex.h
diff options
context:
space:
mode:
authorpaxakor <[email protected]>2022-02-10 16:47:32 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:47:32 +0300
commit40d35c046ee3a61ee2a581f42499c5ce56ac589a (patch)
treec0748b5dcbade83af788c0abfa89c0383d6b779c /util/string/hex.h
parent7fdbed62e54b804e2c12b86a2c2bab12f61065df (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/string/hex.h')
-rw-r--r--util/string/hex.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/string/hex.h b/util/string/hex.h
index 917aa638512..af3d2d528fa 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));
}